Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit eaada50

Browse files
committed
Use tailwind opacity instead of opaque config colors
1 parent 85682ff commit eaada50

File tree

3 files changed

+5
-30
lines changed

3 files changed

+5
-30
lines changed

components/atoms/Button/Button.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@
4444

4545
/* TYPES */
4646
&.primary {
47-
@apply bg-primary text-white border-transparent;
47+
@apply bg-primary text-white border-white border-opacity-0;
4848

4949
&.disabled {
5050
@apply opacity-50;
5151
}
5252
}
5353

5454
&.secondary {
55-
@apply bg-transparent text-primary border-primary;
55+
@apply bg-white bg-opacity-0 text-primary border-primary;
5656

5757
&.disabled {
5858
@apply opacity-50;

components/molecules/Hero/Hero.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function Hero({backgroundImage, body, cta, subtitle, title}) {
2222
style={{
2323
// These css custom properties are used inside the css module file to set the card's background image, tint overlay, and fallback bg color.
2424
'--image-url': `url(${backgroundImage})`,
25-
'--image-tint-color': `${tailwindConfig.theme.colors.black[40]}`,
25+
'--image-tint-color': `${tailwindConfig.theme.colors.black}50`,
2626
'--image-fallback-color': `${tailwindConfig.theme.colors.grey['darkest']}`
2727
}}
2828
>

tailwind.config.js

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -135,33 +135,8 @@ module.exports = {
135135
darker: '#333333',
136136
darkest: '#212121'
137137
},
138-
white: {
139-
DEFAULT: 'rgba(255,255,255,1)',
140-
90: 'rgba(255,255,255,0.9)',
141-
80: 'rgba(255,255,255,0.8)',
142-
70: 'rgba(255,255,255,0.7)',
143-
60: 'rgba(255,255,255,0.6)',
144-
50: 'rgba(255,255,255,0.5)',
145-
40: 'rgba(255,255,255,0.4)',
146-
30: 'rgba(255,255,255,0.3)',
147-
20: 'rgba(255,255,255,0.2)',
148-
10: 'rgba(255,255,255,0.1)',
149-
5: 'rgba(255,255,255,0.05)'
150-
},
151-
black: {
152-
DEFAULT: 'rgba(0,0,0,1)',
153-
90: 'rgba(0,0,0,0.9)',
154-
80: 'rgba(0,0,0,0.8)',
155-
70: 'rgba(0,0,0,0.7)',
156-
60: 'rgba(0,0,0,0.6)',
157-
50: 'rgba(0,0,0,0.5)',
158-
40: 'rgba(0,0,0,0.4)',
159-
30: 'rgba(0,0,0,0.3)',
160-
20: 'rgba(0,0,0,0.2)',
161-
10: 'rgba(0,0,0,0.1)',
162-
5: 'rgba(0,0,0,0.05)'
163-
},
164-
transparent: 'rgba(0,0,0,0)',
138+
white: '#FFFFFF',
139+
black: '#000000',
165140
brand: {
166141
android: '#A4C639',
167142
behance: '#1769FF',

0 commit comments

Comments
 (0)