diff --git a/assets/css/app.css b/assets/css/app.css index 3533280..3519f8a 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -19,6 +19,15 @@ --color-secondary: 104 157 106; /* aqua */ --color-secondary1: 66 123 88; /* aqua faded */ + --color-blue: 69 133 136 ; /* blue */ + --color-blue1: 7 102 120; /* blue faded */ + + --color-purple: 177 98 134 ; /* purple */ + --color-purple1: 143 63 113; /* purple faded */ + + --color-yellow: 215 153 33; /* yellow */ + --color-yellow1: 181 118 20; /* yellow faded */ + --color-background: 253 244 193; /* light0 */ --color-background1: 235 219 178; /* light1 */ @@ -26,7 +35,6 @@ --color-foreground1: 80 73 69; /* dark2 */ --color-heading: var(--color-secondary); - --color-code: var(--color-background1); @apply selection:bg-theme-primary/50; } @@ -36,7 +44,16 @@ --color-primary1: 254 128 25; /* orange bright */ --color-secondary: 104 157 106; /* aqua */ - --color-secondary1: 142 192 124; /* aqua faded */ + --color-secondary1: 142 192 124; /* aqua bright */ + + --color-blue: 69 133 136 ; /* blue */ + --color-blue1: 131 165 152; /* blue bright */ + + --color-purple: 177 98 134 ; /* purple */ + --color-purple1: 250 189 47; /* purple bright */ + + --color-yellow: 215 153 33; /* yellow */ + --color-yellow1: 181 118 20; /* yellow bright */ --color-background: 40 40 40; /* dark0 */ --color-background1: 60 56 54; /* dark1 */ @@ -45,12 +62,15 @@ --color-foreground1: 213 196 161; /* light2 */ --color-heading: var(--color-secondary); - --color-code: var(--color-base); } :root[data-mode=dark] .prose { @apply prose-invert; } + + .prose a { + @apply underline decoration-2 decoration-theme-primary hover:bg-theme-primary hover:text-theme-background transition; + } } @layer components { @@ -67,8 +87,4 @@ .alert.alert-danger { @apply bg-red-100 text-red-500 dark:bg-red-950 dark:text-red-500; } - - .prose a { - @apply underline decoration-2 decoration-theme-primary hover:bg-theme-primary hover:text-theme-background transition; - } } \ No newline at end of file diff --git a/assets/css/lolight.css b/assets/css/lolight.css index f46c24d..75dc963 100644 --- a/assets/css/lolight.css +++ b/assets/css/lolight.css @@ -1,22 +1,23 @@ .ll-nam { /* words */ - @apply text-theme-code; + @apply text-theme-base; } .ll-num { /* numbers */ - @apply text-theme-code; + color: rgb(var(--color-purple)); } .ll-str { /* strings */ - @apply text-theme-code; + color: rgb(var(--color-yellow)); } .ll-rex { /* regular expressions */ - @apply text-theme-code; + color: rgb(var(--color-yellow)); } .ll-pct { /* operators, punctation */ - @apply text-theme-code; + @apply text-theme-primary; } .ll-key { /* keywords */ - @apply text-theme-code font-bold; + @apply font-bold; + color: rgb(var(--color-blue)); } .ll-com { /* comments */ - @apply text-theme-code; + @apply text-theme-base1; font-style: italic; } diff --git a/assets/tailwind.config.js b/assets/tailwind.config.js index 60a23f4..399206f 100644 --- a/assets/tailwind.config.js +++ b/assets/tailwind.config.js @@ -24,6 +24,8 @@ module.exports = { '--tw-prose-bold': 'rgb(var(--color-foreground))', '--tw-prose-quotes': 'rgb(var(--color-foreground))', '--tw-prose-bullets': 'rgb(var(--color-primary))', + '--tw-prose-code': 'rgb(var(--color-base))', + '--tw-prose-pre-bg': 'rgb(var(--color-background1))', '--tw-prose-quote-borders': 'rgb(var(--color-primary))', '--tw-prose-invert-body': 'rgb(var(--color-foreground))', '--tw-prose-invert-links': 'rgb(var(--color-foreground))', @@ -31,7 +33,9 @@ module.exports = { '--tw-prose-invert-bold': 'rgb(var(--color-foreground))', '--tw-prose-invert-quotes': 'rgb(var(--color-foreground))', '--tw-prose-invert-bullets': 'rgb(var(--color-primary))', - '--tw-prose-invert-quote-borders': 'rgb(var(--color-primary))' + '--tw-prose-invert-quote-borders': 'rgb(var(--color-primary))', + '--tw-prose-invert-code': 'rgb(var(--color-base))', + '--tw-prose-invert-pre-bg': 'rgb(var(--color-background1))' } } }, @@ -47,8 +51,7 @@ module.exports = { primary1: 'rgb(var(--color-primary1) / )', secondary: 'rgb(var(--color-secondary) / )', secondary1: 'rgb(var(--color-secondary1) / )', - heading: 'rgb(var(--color-heading) / )', - code: 'rgb(var(--color-code) / )' + heading: 'rgb(var(--color-heading) / )' } } }, diff --git a/lib/chiya_web/components/layouts.ex b/lib/chiya_web/components/layouts.ex index a49bec1..f7fe4e1 100644 --- a/lib/chiya_web/components/layouts.ex +++ b/lib/chiya_web/components/layouts.ex @@ -1,5 +1,7 @@ defmodule ChiyaWeb.Layouts do use ChiyaWeb, :html + import ChiyaWeb.PublicComponents + embed_templates "layouts/*" end diff --git a/lib/chiya_web/components/layouts/root_public.html.heex b/lib/chiya_web/components/layouts/root_public.html.heex index 8b0f15e..02346be 100644 --- a/lib/chiya_web/components/layouts/root_public.html.heex +++ b/lib/chiya_web/components/layouts/root_public.html.heex @@ -37,21 +37,21 @@ -
+
<%= @inner_content %>
-