Skip to content

Commit

Permalink
style: add CSS variables for theming and design consistency
Browse files Browse the repository at this point in the history
Introduce CSS variables for colors, typography sizes, button sizes, and
margin/padding sizes to ensure design consistency and easy theming. This
includes default colors, gradient definitions, text sizes, button sizes,
and cautionary colors.

(cherry picked from commit 3b8a4ed)
  • Loading branch information
chessurisme committed Aug 1, 2024
1 parent 59ee9e8 commit 9fd28b7
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions src/styles/root.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
:root {
/*? Default */
--background-color: #0a0a0a;
--text-color: #eaeaea;

/* Colors */
--black-0: #0a0a0a;
--black-1: #161616;
--black-2: #1d1c1c;
--black-3: #232323;
--black-4: #2c2c2c;
--black-5: #363636;
--black-6: #454444;

--white-0: #eaeaea;
--white-1: #acacac;

/* Typography Sizes */
--text-xsmall: 8pt;
--text-small: 10pt;
--text-regular: 12pt;
--text-large: 14pt;
--text-xlarge: 18pt;
--text-xxlarge: 20pt;

/* Button Sizes */
--button-small: 32px;
--button-regular: 48px;

/* Margin and Padding Sizes */
--mp-xxsmall: 4px;
--mp-small: 8px;
--mp-regular: 16px;
--mp-large: 32px;
--mp-xlarge: 64px;

/* Cautionary */
--warning-color: #e10617;
--caution-color: #fdaa15;
--info-color: #007588;
}

0 comments on commit 9fd28b7

Please sign in to comment.