diff --git a/.theme/app/assets/components.css b/.theme/app/assets/components.css new file mode 100644 index 000000000..c153f20a1 --- /dev/null +++ b/.theme/app/assets/components.css @@ -0,0 +1,23 @@ +@reference "./theme.css"; + +@layer utilities { + li { + @apply list-[square]; + } + + a { + @apply underline; + } + + img.nuxt:is(.logo) { + @apply content-[url(https://nuxt.com/assets/design-kit/logo-green-black.svg)]; + + @media (prefers-color-scheme: dark) { + @apply content-[url(https://nuxt.com/assets/design-kit/logo-green-white.svg)]; + } + } + + .c--basic { + @apply flex justify-center bg-yellow-p3 text-yellow-n4 text-[2rem] font-[Franklin_Gothic_Medium] + } +} diff --git a/.theme/app/assets/styles.scss b/.theme/app/assets/styles.scss deleted file mode 100644 index e69de29bb..000000000 diff --git a/.theme/app/assets/tailwind.css b/.theme/app/assets/theme.css similarity index 91% rename from .theme/app/assets/tailwind.css rename to .theme/app/assets/theme.css index 12530dd18..7ff9b06f0 100644 --- a/.theme/app/assets/tailwind.css +++ b/.theme/app/assets/theme.css @@ -1,6 +1,28 @@ +@import "https://brand.mouseless.codes/assets/css/default.css"; @import "tailwindcss/theme" layer(theme); @import "tailwindcss/preflight" layer(base); -@import "tailwindcss/utilities"; +@import "tailwindcss/utilities" layer(utilities); + +:root { + --color-primary: var(--color-red-500); + --color-primary-text: var(--color-gray-100); + --color-primary-border: var(--color-red-900); + --color-primary-line: var(--color-gray-500); + --color-secondary: var(--color-darkgreen-800); + --color-secondary-text: var(--color-gray-300); + --color-tertiary: var(--color-darkgreen-700); + + --font-size: 16px; + --height-logo: 30px; + --height-logo-small: calc(var(--height-logo) / 2); + + --max-width-content: 64rem; + + /* theme variables samples */ + --theme-color-default: var(--color-blue-p3); + --font-size-default: 2rem; + --font-family-default: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; +} @theme { /* ----- */ @@ -227,4 +249,4 @@ .content { /* @apply max-md:max-w-[90%]; this is an example */ } -} \ No newline at end of file +} diff --git a/.theme/app/assets/variables.scss b/.theme/app/assets/variables.scss deleted file mode 100644 index 5e58e80aa..000000000 --- a/.theme/app/assets/variables.scss +++ /dev/null @@ -1,22 +0,0 @@ -$justify-content-default: center; - -$theme-color-default: burlywood; - -$font-size-default: 2rem; -$font-family-dafault: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; - -:root { - --color-primary: var(--color-red-500); - --color-primary-text: var(--color-gray-100); - --color-primary-border: var(--color-red-900); - --color-primary-line: var(--color-gray-500); - --color-secondary: var(--color-darkgreen-800); - --color-secondary-text: var(--color-gray-300); - --color-tertiary: var(--color-darkgreen-700); - - --font-size: 16px; - --height-logo: 30px; - --height-logo-small: calc(var(--height-logo) / 2); - - --max-width-content: 64rem; -} \ No newline at end of file diff --git a/.theme/app/components/Mermaid.vue b/.theme/app/components/Mermaid.vue index 80571142c..f40046d3e 100644 --- a/.theme/app/components/Mermaid.vue +++ b/.theme/app/components/Mermaid.vue @@ -1,5 +1,8 @@ @@ -27,8 +30,3 @@ onMounted(async() => { } }); - \ No newline at end of file diff --git a/.theme/app/components/Prose/ProseBlockquote.vue b/.theme/app/components/Prose/ProseBlockquote.vue index 25c3643ef..7754e84f8 100644 --- a/.theme/app/components/Prose/ProseBlockquote.vue +++ b/.theme/app/components/Prose/ProseBlockquote.vue @@ -1,5 +1,13 @@ @@ -39,17 +47,3 @@ const body = computed(() => { return result; }); - diff --git a/.theme/app/layouts/default.vue b/.theme/app/layouts/default.vue index 278aa2512..ddef4a49a 100644 --- a/.theme/app/layouts/default.vue +++ b/.theme/app/layouts/default.vue @@ -16,7 +16,7 @@ @@ -27,28 +27,33 @@ - +
+ + +
@@ -60,12 +65,3 @@ const menus = await queryCollection("headers") .order("position", "ASC") .all(); - diff --git a/.theme/app/pages/demo/computed/with-ref.vue b/.theme/app/pages/demo/computed/with-ref.vue index 28e4ef11f..1d49e2225 100644 --- a/.theme/app/pages/demo/computed/with-ref.vue +++ b/.theme/app/pages/demo/computed/with-ref.vue @@ -1,14 +1,20 @@