Skip to content

Commit

Permalink
chore(badge): use green color with black text by default
Browse files Browse the repository at this point in the history
  • Loading branch information
stfsy committed Sep 1, 2023
1 parent 73b1b6d commit 08dbb3e
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 110 deletions.
8 changes: 4 additions & 4 deletions styles/badge.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.badge {
@apply font-bold;
}
@apply font-bold text-gray-900;

.badge.themeable {
@apply text-gray-900 bg-gradient-to-r from-lime-500 via-yellow-300 to-pink-400
&.themeable {
@apply bg-gradient-to-r from-lime-500 via-yellow-300 to-pink-400;
}
}
212 changes: 106 additions & 106 deletions styles/variables.scss
Original file line number Diff line number Diff line change
@@ -1,107 +1,107 @@
:root {

--c-brand: #111827;
--c-brand-light: #111827;


--c-bg: theme('colors.gray.50');
--c-bg-light: #f3f4f5;
--c-bg-lighter: #eeeeee;
--c-bg-navbar: var(--c-bg);
--c-bg-sidebar: var(--c-bg);
--c-bg-arrow: #cccccc;


--c-text: theme('colors.black');
--c-text-accent: var(--c-brand);
--c-text-light: #3a5169;
--c-text-lighter: #4e6e8e;
--c-text-lightest: #6a8bad;
--c-text-quote: #999999;


--c-border: #eaecef;
--c-border-dark: #dfe2e5;


--c-tip: theme('colors.gray.900');
--c-tip-bg: var(--c-bg-light);
--c-tip-title: var(--c-text);
--c-tip-text: var(--c-text);
--c-tip-text-accent: var(--c-text-accent);
--c-warning: #e7c000;
--c-warning-bg: #fffae3;
--c-warning-title: #ad9000;
--c-warning-text: #746000;
--c-warning-text-accent: var(--c-text);
--c-danger: #cc0000;
--c-danger-bg: #ffe0e0;
--c-danger-title: #990000;
--c-danger-text: #660000;
--c-danger-text-accent: var(--c-text);
--c-details-bg: #eeeeee;


--c-badge-tip: var(--c-tip);
--c-badge-warning: var(--c-warning);
--c-badge-danger: var(--c-danger);


--t-color: 0.3s ease;
--t-transform: 0.3s ease;


--code-bg-color: #282c34;
--code-hl-bg-color: rgba(0, 0, 0, 0.66);
--code-ln-color: #9e9e9e;
--code-ln-wrapper-width: 3.5rem;


--font-family: theme('fontFamily.sans');
--font-family-code: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;


--navbar-height: 7rem;
--navbar-padding-v: 1rem;
--navbar-padding-h: 2rem;
--sidebar-width: 25rem;
--sidebar-width-mobile: calc(var(--sidebar-width) * 0.82);
--content-width: 740px;
--homepage-width: 960px;
}

html.dark {

--c-brand: theme('colors.lime.500');
--c-brand-light: #AFE81A;


--c-bg: #22272e;
--c-bg-light: #2b313a;
--c-bg-lighter: #262c34;


--c-text: #adbac7;
--c-text-light: #96a7b7;
--c-text-lighter: #8b9eb0;
--c-text-lightest: #8094a8;


--c-border: #3e4c5a;
--c-border-dark: #34404c;


--c-tip: #318a62;
--c-warning: #ceab00;
--c-warning-bg: #7e755b;
--c-warning-title: #ceac03;
--c-warning-text: #362e00;
--c-danger: #940000;
--c-danger-bg: #806161;
--c-danger-title: #610000;
--c-danger-text: #3a0000;
--c-details-bg: #323843;


--code-hl-bg-color: #363b46;
:root {

--c-brand: #111827;
--c-brand-light: #111827;


--c-bg: theme('colors.gray.50');
--c-bg-light: #f3f4f5;
--c-bg-lighter: #eeeeee;
--c-bg-navbar: var(--c-bg);
--c-bg-sidebar: var(--c-bg);
--c-bg-arrow: #cccccc;


--c-text: theme('colors.black');
--c-text-accent: var(--c-brand);
--c-text-light: #3a5169;
--c-text-lighter: #4e6e8e;
--c-text-lightest: #6a8bad;
--c-text-quote: #999999;


--c-border: #eaecef;
--c-border-dark: #dfe2e5;


--c-tip: theme('colors.gray.900');
--c-tip-bg: var(--c-bg-light);
--c-tip-title: var(--c-text);
--c-tip-text: var(--c-text);
--c-tip-text-accent: var(--c-text-accent);
--c-warning: #e7c000;
--c-warning-bg: #fffae3;
--c-warning-title: #ad9000;
--c-warning-text: #746000;
--c-warning-text-accent: var(--c-text);
--c-danger: #cc0000;
--c-danger-bg: #ffe0e0;
--c-danger-title: #990000;
--c-danger-text: #660000;
--c-danger-text-accent: var(--c-text);
--c-details-bg: #eeeeee;


--c-badge-tip: theme('colors.lime.400');
--c-badge-warning: var(--c-warning);
--c-badge-danger: var(--c-danger);


--t-color: 0.3s ease;
--t-transform: 0.3s ease;


--code-bg-color: #282c34;
--code-hl-bg-color: rgba(0, 0, 0, 0.66);
--code-ln-color: #9e9e9e;
--code-ln-wrapper-width: 3.5rem;


--font-family: theme('fontFamily.sans');
--font-family-code: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;


--navbar-height: 7rem;
--navbar-padding-v: 1rem;
--navbar-padding-h: 2rem;
--sidebar-width: 25rem;
--sidebar-width-mobile: calc(var(--sidebar-width) * 0.82);
--content-width: 740px;
--homepage-width: 960px;
}

html.dark {

--c-brand: theme('colors.lime.500');
--c-brand-light: #AFE81A;


--c-bg: #22272e;
--c-bg-light: #2b313a;
--c-bg-lighter: #262c34;


--c-text: #adbac7;
--c-text-light: #96a7b7;
--c-text-lighter: #8b9eb0;
--c-text-lightest: #8094a8;


--c-border: #3e4c5a;
--c-border-dark: #34404c;


--c-tip: #318a62;
--c-warning: #ceab00;
--c-warning-bg: #7e755b;
--c-warning-title: #ceac03;
--c-warning-text: #362e00;
--c-danger: #940000;
--c-danger-bg: #806161;
--c-danger-title: #610000;
--c-danger-text: #3a0000;
--c-details-bg: #323843;


--code-hl-bg-color: #363b46;
}

0 comments on commit 08dbb3e

Please sign in to comment.