Skip to content

Commit 0820313

Browse files
Afriq Yasin RamadhanAfriq Yasin Ramadhan
authored andcommitted
feat(foundation): add alpha black and alpha white colors; add opacity 3
1 parent e73dff4 commit 0820313

File tree

4 files changed

+420
-1
lines changed

4 files changed

+420
-1
lines changed

packages/tailwind-preset/basic.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,34 @@ module.exports = {
208208
90 : '#200040',
209209
100 : '#130026',
210210
},
211+
violet: {
212+
milk: '#FBF5FF',
213+
0 : '#F5E5FF',
214+
10 : '#DFADFF',
215+
20 : '#C975FF',
216+
30 : '#B33DFF',
217+
40 : '#9B00FF',
218+
50 : '#8400D9',
219+
60 : '#6D00B3',
220+
70 : '#55008C',
221+
80 : '#3E0066',
222+
90 : '#270040',
223+
100 : '#170026',
224+
},
225+
pink: {
226+
milk: '#FEF7FF',
227+
0 : '#FEEBFF',
228+
10 : '#FBC0FF',
229+
20 : '#F895FF',
230+
30 : '#F56AFF',
231+
40 : '#F23BFF',
232+
50 : '#CE32D9',
233+
60 : '#AA29B3',
234+
70 : '#85208C',
235+
80 : '#611866',
236+
90 : '#3D0F40',
237+
100 : '#240926',
238+
},
211239
},
212240
borderRadius: {
213241
'none' : 0,
@@ -224,6 +252,7 @@ module.exports = {
224252
},
225253
opacity: {
226254
0 : 0,
255+
3 : 0.03,
227256
5 : 0.05,
228257
10 : 0.1,
229258
15 : 0.15,

packages/tailwind-preset/index.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,36 @@ module.exports = {
1818
accent: theme.colors.blue[30],
1919
},
2020
},
21+
alpha: {
22+
black: {
23+
3 : `rgba(${theme.colors.gray[100]}, ${theme.opacity[3]})`,
24+
5 : `rgba(${theme.colors.gray[100]}, ${theme.opacity[5]})`,
25+
10: `rgba(${theme.colors.gray[100]}, ${theme.opacity[10]})`,
26+
20: `rgba(${theme.colors.gray[100]}, ${theme.opacity[20]})`,
27+
30: `rgba(${theme.colors.gray[100]}, ${theme.opacity[30]})`,
28+
40: `rgba(${theme.colors.gray[100]}, ${theme.opacity[40]})`,
29+
50: `rgba(${theme.colors.gray[100]}, ${theme.opacity[50]})`,
30+
60: `rgba(${theme.colors.gray[100]}, ${theme.opacity[60]})`,
31+
70: `rgba(${theme.colors.gray[100]}, ${theme.opacity[70]})`,
32+
80: `rgba(${theme.colors.gray[100]}, ${theme.opacity[80]})`,
33+
90: `rgba(${theme.colors.gray[100]}, ${theme.opacity[90]})`,
34+
95: `rgba(${theme.colors.gray[100]}, ${theme.opacity[95]})`,
35+
},
36+
white: {
37+
3 : `rgba(${theme.colors.gray[0]}, ${theme.opacity[3]})`,
38+
5 : `rgba(${theme.colors.gray[0]}, ${theme.opacity[5]})`,
39+
10: `rgba(${theme.colors.gray[0]}, ${theme.opacity[10]})`,
40+
20: `rgba(${theme.colors.gray[0]}, ${theme.opacity[20]})`,
41+
30: `rgba(${theme.colors.gray[0]}, ${theme.opacity[30]})`,
42+
40: `rgba(${theme.colors.gray[0]}, ${theme.opacity[40]})`,
43+
50: `rgba(${theme.colors.gray[0]}, ${theme.opacity[50]})`,
44+
60: `rgba(${theme.colors.gray[0]}, ${theme.opacity[60]})`,
45+
70: `rgba(${theme.colors.gray[0]}, ${theme.opacity[70]})`,
46+
80: `rgba(${theme.colors.gray[0]}, ${theme.opacity[80]})`,
47+
90: `rgba(${theme.colors.gray[0]}, ${theme.opacity[90]})`,
48+
95: `rgba(${theme.colors.gray[0]}, ${theme.opacity[95]})`,
49+
},
50+
},
2151
},
2252
fontSize: {
2353
'tn': [

src/components/text/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Used for the title of any sub-sections
1818
Default style of `Text` is a body text
1919

2020
<preview>
21-
<p-text>The quick brown fox jumps over the lazy dog.</p-text>
21+
<p-text class="bg-alpha-black-3">The quick brown fox jumps over the lazy dog.</p-text>
2222
</preview>
2323

2424
```vue

0 commit comments

Comments
 (0)