Skip to content

Commit ee114b2

Browse files
authored
chore(css): use "brand" over "green" (#8915)
* chore(css): use "brand" over "green" * fixup!
1 parent 4f469fb commit ee114b2

33 files changed

Lines changed: 128 additions & 128 deletions

File tree

apps/site/components/Blog/BlogPostCard/index.module.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
}
77

88
.subtitle {
9-
@apply mt-6
9+
@apply text-brand-600
10+
dark:text-brand-400
11+
mt-6
1012
mb-2
1113
inline-block
1214
text-xs
13-
font-semibold
14-
text-green-600
15-
dark:text-green-400;
15+
font-semibold;
1616
}
1717

1818
.title {

apps/site/components/Common/LinkWithArrow/index.module.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
}
1010

1111
.button {
12-
@apply text-green-600
13-
hover:text-green-900
14-
dark:text-green-400
15-
dark:hover:text-green-200;
12+
@apply text-brand-600
13+
hover:text-brand-900
14+
dark:text-brand-400
15+
dark:hover:text-brand-200;
1616
}

packages/ui-components/__design__/colors.stories.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ export const Colors: StoryObj = {
55
<div className="flex flex-row justify-between">
66
<div className="flex w-full flex-col items-center justify-between gap-1">
77
<div className="flex flex-row gap-1">
8-
<div className="h-20 w-20 bg-green-100" />
9-
<div className="h-20 w-20 bg-green-200" />
10-
<div className="h-20 w-20 bg-green-300" />
11-
<div className="h-20 w-20 bg-green-400" />
12-
<div className="h-20 w-20 bg-green-600" />
13-
<div className="h-20 w-20 bg-green-700" />
14-
<div className="h-20 w-20 bg-green-800" />
15-
<div className="h-20 w-20 bg-green-900" />
8+
<div className="bg-brand-100 h-20 w-20" />
9+
<div className="bg-brand-200 h-20 w-20" />
10+
<div className="bg-brand-300 h-20 w-20" />
11+
<div className="bg-brand-400 h-20 w-20" />
12+
<div className="bg-brand-600 h-20 w-20" />
13+
<div className="bg-brand-700 h-20 w-20" />
14+
<div className="bg-brand-800 h-20 w-20" />
15+
<div className="bg-brand-900 h-20 w-20" />
1616
</div>
1717
<div className="flex flex-row gap-1">
1818
<div className="h-20 w-20 bg-neutral-100" />

packages/ui-components/src/Common/AlertBox/index.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@
6363
}
6464

6565
&.success {
66-
@apply bg-green-600;
66+
@apply bg-brand-600;
6767

6868
.title {
69-
@apply bg-green-700;
69+
@apply bg-brand-700;
7070
}
7171
}
7272

packages/ui-components/src/Common/Badge/index.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020

2121
&.default {
22-
@apply bg-green-600;
22+
@apply bg-brand-600;
2323
}
2424

2525
&.error {

packages/ui-components/src/Common/BadgeGroup/index.module.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@
2525
}
2626

2727
&.default {
28-
@apply border-green-200
29-
bg-green-100
30-
dark:border-green-700
28+
@apply border-brand-200
29+
bg-brand-100
30+
dark:border-brand-700
3131
dark:bg-neutral-900;
3232

3333
.icon {
34-
@apply text-green-500
35-
dark:text-green-300;
34+
@apply text-brand-500
35+
dark:text-brand-300;
3636
}
3737

3838
.message,
3939
.message a:not(:hover) {
40-
@apply text-green-700
41-
dark:text-green-300;
40+
@apply text-brand-700
41+
dark:text-brand-300;
4242
}
4343
}
4444

packages/ui-components/src/Common/Banner/index.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
}
3131

3232
.default {
33-
@apply bg-green-600;
33+
@apply bg-brand-600;
3434
}
3535

3636
.error {

packages/ui-components/src/Common/BaseButton/index.module.css

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,26 @@
4646
}
4747

4848
&.primary {
49-
@apply rounded-sm
49+
@apply border-brand-600
50+
bg-brand-600
51+
rounded-sm
5052
border
51-
border-green-600
52-
bg-green-600
5353
text-white
5454
shadow-xs;
5555

5656
&:hover:not([aria-disabled='true']) {
57-
@apply border-green-700
58-
bg-green-700
57+
@apply border-brand-700
58+
bg-brand-700
5959
text-white;
6060
}
6161

6262
&:focus {
63-
@apply border-green-700
64-
bg-green-700;
63+
@apply border-brand-700
64+
bg-brand-700;
6565
}
6666

6767
&[aria-disabled='true'] {
68-
@apply bg-green-600
68+
@apply bg-brand-600
6969
opacity-50;
7070
}
7171
}
@@ -100,10 +100,13 @@
100100

101101
&.special {
102102
@apply before:bg-gradient-glow-backdrop
103+
border-brand-600/30
104+
bg-brand-600/10
105+
after:from-brand-600/0
106+
after:via-brand-600
107+
after:to-brand-600/0
103108
rounded-lg
104109
border
105-
border-green-600/30
106-
bg-green-600/10
107110
text-white
108111
shadow-xs
109112
before:absolute
@@ -124,21 +127,18 @@
124127
after:h-px
125128
after:w-2/5
126129
after:bg-linear-to-r
127-
after:from-green-600/0
128-
after:via-green-600
129-
after:to-green-600/0
130130
after:content-[''];
131131

132132
&[aria-disabled='true'] {
133133
@apply opacity-50;
134134
}
135135

136136
&:hover:not([aria-disabled='true']) {
137-
@apply bg-green-600/20;
137+
@apply bg-brand-600/20;
138138
}
139139

140140
&:focus {
141-
@apply bg-green-600/20;
141+
@apply bg-brand-600/20;
142142
}
143143
}
144144

packages/ui-components/src/Common/BaseLinkTabs/index.module.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
}
3030

3131
&[data-state='active'] {
32-
@apply border-b-green-600
33-
text-green-600
34-
dark:border-b-green-400
35-
dark:text-green-400;
32+
@apply border-b-brand-600
33+
text-brand-600
34+
dark:border-b-brand-400
35+
dark:text-brand-400;
3636
}
3737
}
3838
}

packages/ui-components/src/Common/BasePagination/PaginationListItem/index.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
.listItem,
88
.listItem:link,
99
.listItem:active {
10-
@apply flex
10+
@apply aria-current:bg-brand-600
11+
flex
1112
size-10
1213
cursor-pointer
1314
items-center
@@ -17,7 +18,6 @@
1718
py-2.5
1819
text-neutral-800
1920
aria-current:cursor-default
20-
aria-current:bg-green-600
2121
aria-current:text-white
2222
motion-safe:transition-colors
2323
dark:text-neutral-200;

0 commit comments

Comments
 (0)