-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(colors): add color atom + change tw config
- Loading branch information
Showing
6 changed files
with
129 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import Colors from './Colors.twig'; | ||
import colors from './colors.json'; | ||
|
||
import './colors.css'; | ||
|
||
export default { | ||
title: 'Design System/Atoms/Colors' | ||
}; | ||
|
||
export const list = () => Colors({ colors }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% for line in colors %} | ||
<div class="flex gap-4"> | ||
{% for color in line %} | ||
<div> | ||
<div class="Color shadow-lg p-4"> | ||
<div class="Color-box {{ color }} min-w-[200px] h-[120px]"></div> | ||
<div class="text-center mt-2 h-10">{{ color }}</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.Color { | ||
border-radius: 36px; | ||
} | ||
|
||
.Color-box { | ||
border-radius: 30px 30px 0px 0px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"vermillon": [ | ||
"bg-vermillon-light", | ||
"bg-vermillon-lighter", | ||
"bg-vermillon-lightest", | ||
"bg-vermillon-dark" | ||
], | ||
"charcoal": ["bg-charcoal-light", "bg-charcoal-medium", "bg-charcoal-dark"], | ||
"pearl": ["bg-pearl-light", "bg-pearl-medium"], | ||
"grey": ["bg-grey-medium", "bg-grey-dark"], | ||
"white": ["bg-white"], | ||
"red": ["bg-red-light", "bg-red", "bg-background-red"], | ||
"green": ["bg-green-light", "bg-green-dark"], | ||
"wheat": ["bg-wheat-light", "bg-wheat", "bg-wheat-dark"], | ||
"ultramarine-blue": ["bg-ultramarine-blue-light", "bg-ultramarine-blue-dark"], | ||
"caribbean-green": ["bg-caribbean-green"], | ||
"others": [ | ||
"bg-purple", | ||
"bg-turquoise", | ||
"bg-brown", | ||
"bg-apple-green", | ||
"bg-pink" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters