Skip to content

Commit 4fcc57c

Browse files
chore(global.css): flip pascalCase naming to kebab-case
1 parent 91b9185 commit 4fcc57c

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

src/styles/global.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555

5656
/* Semantic Colors: Light mode */
5757
--primary: var(--blue-500);
58-
--primary-highContrast: var(--blue-800);
59-
--primary-lowContrast: var(--blue-100);
58+
--primary-high-contrast: var(--blue-800);
59+
--primary-low-contrast: var(--blue-100);
6060
--primary-hover: var(--blue-400);
6161
--primary-visited: var(--blue-700);
6262
/* ! Deprecating primary-light */
@@ -81,9 +81,9 @@
8181
--neutral: white;
8282

8383
/* Misc sematics: light mode */
84-
--tooltipShadow: rgba(0, 0, 0, 0.24);
85-
--switchBackground: var(--gray-300);
86-
--hubHeroContentBg: rgba(255, 255, 255, 0.8);
84+
--tooltip-shadow: rgba(0, 0, 0, 0.24);
85+
--switch-background: var(--gray-300);
86+
--hub-hero-content-bg: rgba(255, 255, 255, 0.8);
8787
--bg-main-gradient: linear-gradient(
8888
102.7deg,
8989
rgba(185, 185, 241, 0.2) 0%,
@@ -98,8 +98,8 @@
9898
[data-theme="dark"] {
9999
/* Semantic Colors: Dark mode */
100100
--primary: var(--orange-500);
101-
--primary-highContrast: var(--orange-100);
102-
--primary-lowContrast: var(--orange-800);
101+
--primary-high-contrast: var(--orange-100);
102+
--primary-low-contrast: var(--orange-800);
103103
--primary-hover: var(--orange-400);
104104
--primary-visited: var(--orange-550);
105105
/* ! Deprecating primary-light */
@@ -124,9 +124,9 @@
124124
--neutral: var(--gray-900);
125125

126126
/* Misc sematics: light mode */
127-
--tooltipShadow: rgba(255, 255, 255, 0.24);
128-
--switchBackground: rgba(255, 255, 255, 0.24);
129-
--hubHeroContentBg: rgba(34, 34, 34, 0.8);
127+
--tooltip-shadow: rgba(255, 255, 255, 0.24);
128+
--switch-background: rgba(255, 255, 255, 0.24);
129+
--hub-hero-content-bg: rgba(34, 34, 34, 0.8);
130130
--bg-main-gradient: linear-gradient(
131131
102.7deg,
132132
rgba(185, 185, 241, 0.2) 0%,
@@ -217,7 +217,7 @@
217217

218218
@layer components {
219219
.accordion-trigger {
220-
@apply flex flex-1 items-center justify-between gap-2 px-2 py-2 font-medium transition-all hover:bg-background-highlight hover:text-primary-hover focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-primary-hover md:px-4 [&[data-state=open]>svg]:-rotate-90 [&[data-state=open]]:bg-background-highlight [&[data-state=open]]:text-primary-highContrast;
220+
@apply flex flex-1 items-center justify-between gap-2 px-2 py-2 font-medium transition-all hover:bg-background-highlight hover:text-primary-hover focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-primary-hover md:px-4 [&[data-state=open]>svg]:-rotate-90 [&[data-state=open]]:bg-background-highlight [&[data-state=open]]:text-primary-high-contrast;
221221
}
222222
.accordion-content {
223223
@apply overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down;

tailwind.config.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ const config = {
2828
colors: {
2929
primary: {
3030
DEFAULT: "var(--primary)",
31-
highContrast: "var(--primary-highContrast)",
32-
lowContrast: "var(--primary-lowContrast)",
31+
"high-contrast": "var(--primary-high-contrast)",
32+
"low-contrast": "var(--primary-low-contrast)",
3333
hover: "var(--primary-hover)",
3434
visited: "var(--primary-visited)",
3535
light: "var(--primary-light)",
@@ -48,30 +48,30 @@ const config = {
4848
},
4949
disabled: "var(--disabled)",
5050
neutral: "var(--neutral)",
51-
tooltipShadow: "var(--tooltipShadow)",
52-
switchBackground: "var(--switchBackground)",
53-
hubHeroContentBg: "var(--hubHeroContentBg)",
51+
"tooltip-shadow": "var(--tooltip-shadow)",
52+
"switch-background": "var(--switch-background)",
53+
"hub-hero-content-bg": "var(--hub-hero-content-bg)",
5454
},
5555
backgroundImage: {
56-
bgMainGradient: "var(--bg-main-gradient)",
56+
"bg-main-gradient": "var(--bg-main-gradient)",
5757
},
5858
boxShadow: {
59-
tableBox: "var(--table-box-shadow)",
59+
"table-box": "var(--table-box-shadow)",
6060
table:
6161
"0 14px 66px rgba(0,0,0,.07), 0 10px 17px rgba(0,0,0,.03), 0 4px 7px rgba(0,0,0,.05)",
6262
drop: "0 4px 17px 0 rgba(0,0,0,0.08)",
63-
tableBoxHover: "0px 8px 17px rgba(0, 0, 0, 0.15)",
64-
tableItemBox: "var(--table-item-box-shadow)",
65-
tableItemBoxHover: "0 0 1px var(--primary)",
66-
gridYellowBoxShadow: "8px 8px 0px 0px #ffe78e",
67-
gridBlueBowShadow: "8px 8px 0px 0px #a7d0f4",
63+
"table-box-hover": "0px 8px 17px rgba(0, 0, 0, 0.15)",
64+
"table-item-box": "var(--table-item-box-shadow)",
65+
"table-item-box-hover": "0 0 1px var(--primary)",
66+
"grid-yellow-box-shadow": "8px 8px 0px 0px #ffe78e",
67+
"gird-blue-box-shadow": "8px 8px 0px 0px #a7d0f4",
6868
// Part of new DS
6969
"menu-accordion":
7070
"0px 2px 2px 0px rgba(0, 0, 0, 0.12) inset, 0px -3px 2px 0px rgba(0, 0, 0, 0.14) inset",
71-
// TODO: From current theme. Deprecate for 'buttonHover'
71+
// TODO: From current theme. Deprecate for 'button-hover'
7272
primary: "4px 4px 0px 0px var(--primary)",
73-
buttonHover: "4px 4px 0 0 var(--primary-lowContrast)",
74-
tooltip: "0 0 16px var(--tooltipShadow)",
73+
"button-hover": "4px 4px 0 0 var(--primary-low-contrast)",
74+
tooltip: "0 0 16px var(--tooltip-shadow)",
7575
},
7676
spacing: {
7777
7.5: "1.875rem",

0 commit comments

Comments
 (0)