Skip to content

Commit

Permalink
feat(colors, tokens): add new tailwind colors into the tokens and fon…
Browse files Browse the repository at this point in the history
…t weight token in the storybook
  • Loading branch information
glrodasz committed Jul 16, 2021
1 parent d4249aa commit a8520a7
Show file tree
Hide file tree
Showing 11 changed files with 4,953 additions and 651 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
},
collectCoverageFrom: [
'{atoms,molecules,layout}/**/!(index).js',
'{hocs,helpers,scripts}/*.js',
'{hocs,helpers}/*.js',
],
coverageThreshold: {
global: {
Expand Down
352 changes: 242 additions & 110 deletions styles/tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,122 +16,254 @@
--color-base-white: #fff;
--color-base-transparent: transparent;

--color-gray-100: #f7fafc;
--color-gray-200: #edf2f7;
--color-gray-300: #e2e8f0;
--color-gray-400: #cbd5e0;
--color-gray-500: #a0aec0;
--color-gray-600: #718096;
--color-gray-700: #4a5568;
--color-gray-800: #2d3748;
--color-gray-900: #1a202c;

--color-red-100: #fff5f5;
--color-red-200: #fed7d7;
--color-red-300: #feb2b2;
--color-red-400: #fc8181;
--color-red-500: #f56565;
--color-red-600: #e53e3e;
--color-red-700: #c53030;
--color-red-800: #9b2c2c;
--color-red-900: #742a2a;

--color-orange-100: #fffaf0;
--color-orange-200: #feebc8;
--color-orange-300: #fbd38d;
--color-orange-400: #f6ad55;
--color-orange-500: #ed8936;
--color-orange-600: #dd6b20;
--color-orange-700: #c05621;
--color-orange-800: #9c4221;
--color-orange-900: #7b341e;

--color-yellow-100: #fffff0;
--color-yellow-200: #fefcbf;
--color-yellow-300: #faf089;
--color-yellow-400: #f6e05e;
--color-yellow-500: #ecc94b;
--color-yellow-600: #d69e2e;
--color-yellow-700: #b7791f;
--color-yellow-800: #975a16;
--color-yellow-900: #744210;

--color-green-100: #f0fff4;
--color-green-200: #c6f6d5;
--color-green-300: #9ae6b4;
--color-green-400: #68d391;
--color-green-500: #48bb78;
--color-green-600: #38a169;
--color-green-700: #2f855a;
--color-green-800: #276749;
--color-green-900: #22543d;

--color-teal-100: #e6fffa;
--color-teal-200: #b2f5ea;
--color-teal-300: #81e6d9;
--color-teal-400: #4fd1c5;
--color-teal-500: #38b2ac;
--color-teal-600: #319795;
--color-teal-700: #2c7a7b;
--color-teal-800: #285e61;
--color-teal-900: #234e52;

--color-blue-100: #ebf8ff;
--color-blue-200: #bee3f8;
--color-blue-300: #90cdf4;
--color-blue-400: #63b3ed;
--color-blue-500: #4299e1;
--color-blue-600: #3182ce;
--color-blue-700: #2b6cb0;
--color-blue-800: #2c5282;
--color-blue-900: #2a4365;

--color-indigo-100: #ebf4ff;
--color-indigo-200: #c3dafe;
--color-indigo-300: #a3bffa;
--color-indigo-400: #7f9cf5;
--color-indigo-500: #667eea;
--color-indigo-600: #5a67d8;
--color-indigo-700: #4c51bf;
--color-indigo-800: #434190;
--color-indigo-900: #3c366b;

--color-purple-100: #faf5ff;
--color-purple-200: #e9d8fd;
--color-purple-300: #d6bcfa;
--color-purple-400: #b794f4;
--color-purple-500: #9f7aea;
--color-purple-600: #805ad5;
--color-purple-700: #6b46c1;
--color-purple-800: #553c9a;
--color-purple-900: #44337a;

--color-pink-100: #fff5f7;
--color-pink-200: #fed7e2;
--color-pink-300: #fbb6ce;
--color-pink-400: #f687b3;
--color-pink-500: #ed64a6;
--color-pink-600: #d53f8c;
--color-pink-700: #b83280;
--color-pink-800: #97266d;
--color-pink-900: #702459;
--color-rose-50: #fff1f2;
--color-rose-100: #ffe4e6;
--color-rose-200: #fecdd3;
--color-rose-300: #fda4af;
--color-rose-400: #fb7185;
--color-rose-500: #f43f5e;
--color-rose-600: #e11d48;
--color-rose-700: #be123c;
--color-rose-800: #9f1239;
--color-rose-900: #881337;

--color-pink-50: #fdf2f8;
--color-pink-100: #fce7f3;
--color-pink-200: #fbcfe8;
--color-pink-300: #f9a8d4;
--color-pink-400: #f472b6;
--color-pink-500: #ec4899;
--color-pink-600: #db2777;
--color-pink-700: #be185d;
--color-pink-800: #9d174d;
--color-pink-900: #831843;

--color-fuchsia-50: #fdf4ff;
--color-fuchsia-100: #fae8ff;
--color-fuchsia-200: #f5d0fe;
--color-fuchsia-300: #f0abfc;
--color-fuchsia-400: #e879f9;
--color-fuchsia-500: #d946ef;
--color-fuchsia-600: #c026d3;
--color-fuchsia-700: #a21caf;
--color-fuchsia-800: #86198f;
--color-fuchsia-900: #701a75;

--color-purple-50: #faf5ff;
--color-purple-100: #f3e8ff;
--color-purple-200: #e9d5ff;
--color-purple-300: #d8b4fe;
--color-purple-400: #c084fc;
--color-purple-500: #a855f7;
--color-purple-600: #9333ea;
--color-purple-700: #7e22ce;
--color-purple-800: #6b21a8;
--color-purple-900: #581c87;

--color-violet-50: #f5f3ff;
--color-violet-100: #ede9fe;
--color-violet-200: #ddd6fe;
--color-violet-300: #c4b5fd;
--color-violet-400: #a78bfa;
--color-violet-500: #8b5cf6;
--color-violet-600: #7c3aed;
--color-violet-700: #6d28d9;
--color-violet-800: #5b21b6;
--color-violet-900: #4c1d95;

--color-indigo-50: #eef2ff;
--color-indigo-100: #e0e7ff;
--color-indigo-200: #c7d2fe;
--color-indigo-300: #a5b4fc;
--color-indigo-400: #818cf8;
--color-indigo-500: #6366f1;
--color-indigo-600: #4f46e5;
--color-indigo-700: #4338ca;
--color-indigo-800: #3730a3;
--color-indigo-900: #312e81;

--color-blue-50: #eff6ff;
--color-blue-100: #dbeafe;
--color-blue-200: #bfdbfe;
--color-blue-300: #93c5fd;
--color-blue-400: #60a5fa;
--color-blue-500: #3b82f6;
--color-blue-600: #2563eb;
--color-blue-700: #1d4ed8;
--color-blue-800: #1e40af;
--color-blue-900: #1e3a8a;

--color-sky-50: #f0f9ff;
--color-sky-100: #e0f2fe;
--color-sky-200: #bae6fd;
--color-sky-300: #7dd3fc;
--color-sky-400: #38bdf8;
--color-sky-500: #0ea5e9;
--color-sky-600: #0284c7;
--color-sky-700: #0369a1;
--color-sky-800: #075985;
--color-sky-900: #0c4a6e;

--color-cyan-50: #ecfeff;
--color-cyan-100: #cffafe;
--color-cyan-200: #a5f3fc;
--color-cyan-300: #67e8f9;
--color-cyan-400: #22d3ee;
--color-cyan-500: #06b6d4;
--color-cyan-600: #0891b2;
--color-cyan-700: #0e7490;
--color-cyan-800: #155e75;
--color-cyan-900: #164e63;

--color-teal-50: #f0fdfa;
--color-teal-100: #ccfbf1;
--color-teal-200: #99f6e4;
--color-teal-300: #5eead4;
--color-teal-400: #2dd4bf;
--color-teal-500: #14b8a6;
--color-teal-600: #0d9488;
--color-teal-700: #0f766e;
--color-teal-800: #115e59;
--color-teal-900: #134e4a;

--color-emerald-50: #ecfdf5;
--color-emerald-100: #d1fae5;
--color-emerald-200: #a7f3d0;
--color-emerald-300: #6ee7b7;
--color-emerald-400: #34d399;
--color-emerald-500: #10b981;
--color-emerald-600: #059669;
--color-emerald-700: #047857;
--color-emerald-800: #065f46;
--color-emerald-900: #064e3b;

--color-green-50: #f0fdf4;
--color-green-100: #dcfce7;
--color-green-200: #bbf7d0;
--color-green-300: #86efac;
--color-green-400: #4ade80;
--color-green-500: #22c55e;
--color-green-600: #16a34a;
--color-green-700: #15803d;
--color-green-800: #166534;
--color-green-900: #14532d;

--color-lime-50: #f7fee7;
--color-lime-100: #ecfccb;
--color-lime-200: #d9f99d;
--color-lime-300: #bef264;
--color-lime-400: #a3e635;
--color-lime-500: #84cc16;
--color-lime-600: #65a30d;
--color-lime-700: #4d7c0f;
--color-lime-800: #3f6212;
--color-lime-900: #365314;

--color-yellow-50: #fefce8;
--color-yellow-100: #fef9c3;
--color-yellow-200: #fef08a;
--color-yellow-300: #fde047;
--color-yellow-400: #facc15;
--color-yellow-500: #eab308;
--color-yellow-600: #ca8a04;
--color-yellow-700: #a16207;
--color-yellow-800: #854d0e;
--color-yellow-900: #713f12;

--color-amber-50: #fffbeb;
--color-amber-100: #fef3c7;
--color-amber-200: #fde68a;
--color-amber-300: #fcd34d;
--color-amber-400: #fbbf24;
--color-amber-500: #f59e0b;
--color-amber-600: #d97706;
--color-amber-700: #b45309;
--color-amber-800: #92400e;
--color-amber-900: #78350f;

--color-orange-50: #fff7ed;
--color-orange-100: #ffedd5;
--color-orange-200: #fed7aa;
--color-orange-300: #fdba74;
--color-orange-400: #fb923c;
--color-orange-500: #f97316;
--color-orange-600: #ea580c;
--color-orange-700: #c2410c;
--color-orange-800: #9a3412;
--color-orange-900: #7c2d12;

--color-red-50: #fef2f2;
--color-red-100: #fee2e2;
--color-red-200: #fecaca;
--color-red-300: #fca5a5;
--color-red-400: #f87171;
--color-red-500: #ef4444;
--color-red-600: #dc2626;
--color-red-700: #b91c1c;
--color-red-800: #991b1b;
--color-red-900: #7f1d1d;

--color-warm-gray-50: #fafaf9;
--color-warm-gray-100: #f5f5f4;
--color-warm-gray-200: #e7e5e4;
--color-warm-gray-300: #d6d3d1;
--color-warm-gray-400: #a8a29e;
--color-warm-gray-500: #78716c;
--color-warm-gray-600: #57534e;
--color-warm-gray-700: #44403c;
--color-warm-gray-800: #292524;
--color-warm-gray-900: #1c1917;

--color-true-gray-50: #fafafa;
--color-true-gray-100: #f5f5f5;
--color-true-gray-200: #e5e5e5;
--color-true-gray-300: #d4d4d4;
--color-true-gray-400: #a3a3a3;
--color-true-gray-500: #737373;
--color-true-gray-600: #525252;
--color-true-gray-700: #404040;
--color-true-gray-800: #262626;
--color-true-gray-900: #171717;

--color-gray-50: #fafafa;
--color-gray-100: #f4f4f5;
--color-gray-200: #e4e4e7;
--color-gray-300: #d4d4d8;
--color-gray-400: #a1a1aa;
--color-gray-500: #71717a;
--color-gray-600: #52525b;
--color-gray-700: #3f3f46;
--color-gray-800: #27272a;
--color-gray-900: #18181b;

--color-cool-gray-50: #f9fafb;
--color-cool-gray-100: #f3f4f6;
--color-cool-gray-200: #e5e7eb;
--color-cool-gray-300: #d1d5db;
--color-cool-gray-400: #9ca3af;
--color-cool-gray-500: #6b7280;
--color-cool-gray-600: #4b5563;
--color-cool-gray-700: #374151;
--color-cool-gray-800: #1f2937;
--color-cool-gray-900: #111827;

--color-blue-gray-50: #f8fafc;
--color-blue-gray-100: #f1f5f9;
--color-blue-gray-200: #e2e8f0;
--color-blue-gray-300: #cbd5e1;
--color-blue-gray-400: #94a3b8;
--color-blue-gray-500: #64748b;
--color-blue-gray-600: #475569;
--color-blue-gray-700: #334155;
--color-blue-gray-800: #1e293b;
--color-blue-gray-900: #0f172a;

--spacing-none: 0;
--spacing-xs: 5;
--spacing-sm: 15;
--spacing-md: 20;
--spacing-lg: 40;

--media-query-min-width-sm: 576px;
--media-query-min-width-md: 768px;
--media-query-min-width-lg: 992px;
--media-query-min-width-xl: 1200px;

--media-query-max-width-xs: 575.98px;
--media-query-max-width-sm: 767.98px;
--media-query-max-width-md: 991.98px;
--media-query-max-width-lg: 1199px;

--font-family-sans: Quicksand, Arial, sans-serif;
--font-family-mono: 'Roboto Mono', 'Courier New', monospace;

Expand Down Expand Up @@ -207,7 +339,7 @@
--color-secondary-muted: #eb4e58;
--color-secondary-inverted: #fff;
--color-tertiary: #00e5a8;
--color-tertiary-muted: #48bb78;
--color-tertiary-muted: #22c55e;
--color-tertiary-inverted: #fff;

--background-color-primary: #f9f9f9;
Expand Down
3 changes: 2 additions & 1 deletion tokens/Token/Token.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import React from 'react'

import { Color, Spacing, FontFamily, FontSize } from './components'
import { Color, Spacing, FontFamily, FontSize, FontWeight } from './components'

const Token = () => <></>

Token.Color = Color
Token.Spacing = Spacing
Token.FontFamily = FontFamily
Token.FontSize = FontSize
Token.FontWeight = FontWeight

export default Token
Loading

0 comments on commit a8520a7

Please sign in to comment.