Skip to content

Commit 0f670ea

Browse files
committed
chore: change rgb declaration * 3
1 parent 5c902be commit 0f670ea

File tree

8 files changed

+23
-23
lines changed

8 files changed

+23
-23
lines changed

src/components/GlobalStyles.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,13 @@ const GlobalStylesElement = createGlobalStyle<GlobalStylesElementProps>`
268268
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
269269
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
270270
text-shadow: none;
271-
background: rgba(var(--purple-color-rgb), .2);
271+
background: rgb(var(--purple-color-rgb) / .2);
272272
}
273273
274274
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
275275
code[class*="language-"]::selection, code[class*="language-"] ::selection {
276276
text-shadow: none;
277-
background: rgba(var(--purple-color-rgb), .2);
277+
background: rgb(var(--purple-color-rgb) / .2);
278278
}
279279
280280
@media print {

src/components/content/Placeholder/Placeholder.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@ const StyledPlaceholder = styled(PlaceholderElement)`
3030
background-size: var(--placeholder-animation-size);
3131
3232
&& {
33-
background-color: rgba(var(--dark-color-rgb), 0.15);
33+
background-color: rgb(var(--dark-color-rgb) / 0.15);
3434
}
3535
3636
&[data-is-animated] {
3737
animation: placeholder-animation var(--placeholder-animation-time) linear
3838
infinite;
3939
background-image: linear-gradient(
4040
135deg,
41-
rgba(var(--dark-color-rgb), 0.15) 0%,
42-
rgba(var(--dark-color-rgb), 0.15) 5%,
43-
rgba(var(--dark-color-rgb), 0) 35%,
44-
rgba(var(--dark-03-color-rgb), 0.2) 50%,
45-
rgba(var(--dark-03-color-rgb), 0) 65%,
46-
rgba(var(--dark-color-rgb), 0.15) 95%,
47-
rgba(var(--dark-color-rgb), 0.15) 100%
41+
rgb(var(--dark-color-rgb) / 0.15) 0%,
42+
rgb(var(--dark-color-rgb) / 0.15) 5%,
43+
rgb(var(--dark-color-rgb) / 0) 35%,
44+
rgb(var(--dark-03-color-rgb) / 0.2) 50%,
45+
rgb(var(--dark-03-color-rgb) / 0) 65%,
46+
rgb(var(--dark-color-rgb) / 0.15) 95%,
47+
rgb(var(--dark-color-rgb) / 0.15) 100%
4848
);
4949
}
5050

src/components/navigation/LegacyTabs/LegacyTabs.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ const StyledTabsContainerElement = styled(TabsContainerElement)`
139139
transition: all 0.15s linear;
140140
background-image: linear-gradient(
141141
to left,
142-
rgba(255, 255, 255, 0),
143-
rgba(255, 255, 255, 1)
142+
rgb(255 255 255 / 0),
143+
rgb(255 255 255 / 1)
144144
);
145145
z-index: 1;
146146
}
@@ -158,8 +158,8 @@ const StyledTabsContainerElement = styled(TabsContainerElement)`
158158
transition: all 0.15s linear;
159159
background-image: linear-gradient(
160160
to right,
161-
rgba(255, 255, 255, 0),
162-
rgba(255, 255, 255, 1)
161+
rgb(255 255 255 / 0),
162+
rgb(255 255 255 / 1)
163163
);
164164
z-index: 1;
165165
}

src/components/organisms/Modal/Modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const Overlay = styled.div`
1919
right: 0;
2020
bottom: 0;
2121
left: 0;
22-
background: rgba(0, 0, 0, 0.4);
22+
background: rgb(0 0 0 / 0.4);
2323
place-content: center;
2424
place-items: center;
2525
z-index: 1000;

src/components/other/Base64Upload/Base64Upload.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,14 @@ export const Base64Upload = styled(
138138
}
139139
140140
&& {
141-
border: var(--border-width) solid rgba(var(--dark-02-color-rgb), 0.1);
141+
border: var(--border-width) solid rgb(var(--dark-02-color-rgb) / 0.1);
142142
}
143143
144144
&&:not([data-is-hovered]) {
145-
background: rgba(var(--purple-color), 0);
145+
background: rgb(var(--purple-color) / 0);
146146
}
147147
148148
&&[data-is-hovered] {
149-
background: rgba(var(--purple-color), 0.1);
149+
background: rgb(var(--purple-color) / 0.1);
150150
}
151151
`;

src/stories/Styles.docs.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ The `gap` property can be used in flex, grid and even block layouts. If it's use
347347
## Border
348348

349349
```tsx
350-
<Block border={true} padding>Default border</Block> // border: var(--border-width) solid var(--border-color); // 1px solid rgba(20, 20, 70, 0.1)
351-
<Block border="2bw #dark.20" padding>Border size of two default border sizes</Block> // border-width: calc(var(--border-width) * 2) solid rgba(20, 20, 70, 0.2)
350+
<Block border={true} padding>Default border</Block> // border: var(--border-width) solid var(--border-color); // 1px solid rgb(20 20 70 / 0.1)
351+
<Block border="2bw #dark.20" padding>Border size of two default border sizes</Block> // border-width: calc(var(--border-width) * 2) solid rgb(20 20 70 / 0.2)
352352
<Block border="bottom" padding>Default border only at the bottom</Block> // border-bottom: var(--border-width) solid var(--border-color);
353353
<Block border="2bw bottom left right #dark.50" padding>Complex border</Block>
354354
```
@@ -406,7 +406,7 @@ The `gap` property can be used in flex, grid and even block layouts. If it's use
406406

407407
```tsx
408408
<Block shadow padding>Default shadow</Block> // box-shadow: 0 5px 15px var(--shadow-color);
409-
<Block shadow="5px 5px 10px #dark.20" padding>Custom shadow</Block> // box-shadow: 0 5px 15px rgba(var(--dark-color-rgb), .2);
409+
<Block shadow="5px 5px 10px #dark.20" padding>Custom shadow</Block> // box-shadow: 0 5px 15px rgb(var(--dark-color-rgb) / .2);
410410
```
411411

412412
<Root>

src/stories/Tasty.docs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const Element = tasty({
2929
styles: {
3030
// tokens
3131
'@local-padding': ['2x', '1x'], // responsive styles
32-
'@text-color': 'rgba(255, 0, 0)',
32+
'@text-color': 'rgb(255 0 0)',
3333
// styles
3434
padding: '@local-padding',
3535
color: {

src/tokens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ const TOKENS = {
237237
'scrollbar-width': '1.5x',
238238
'scrollbar-outline-width': '1ow',
239239
'scrollbar-radius': '1.5r',
240-
'scrollbar-thumb-color': 'rgba(var(--text-color-rgb), .5)',
240+
'scrollbar-thumb-color': 'rgb(var(--text-color-rgb) / .5)',
241241
'scrollbar-outline-color': 'var(--clear-color)',
242242
'scrollbar-bg-color': 'var(--grey-light-color)',
243243
'scrollbar-corner-color': 'var(--clear-color)',

0 commit comments

Comments
 (0)