Skip to content

Commit

Permalink
feat(tailwind): update theme settings
Browse files Browse the repository at this point in the history
  • Loading branch information
keellyp committed Sep 18, 2024
1 parent 1c608e6 commit 98eb5f6
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tailwind.config.js

This file was deleted.

111 changes: 111 additions & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
type Colors = 'grey' | 'blue' | 'yellow' | 'purple' | 'green' | 'red'

const colors: Record<Colors, Record<number, string>> = {
grey: {
100: '#F3F4F6',
200: '#E7EAEE',
300: '#D9DEE7',
400: '#C3C9D5',
500: '#8C95A6',
600: '#66758F',
700: '#19212E',
},
blue: {
100: '#DEECFF',
200: '#B3D4FF',
300: '#4C9AFF',
400: '#2684FF',
500: '#267DFF',
600: '#006CFA',
700: '#005FDB',
800: '#0050B8',
},
yellow: {
100: '#FFF7E6',
200: '#FFF0B3',
300: '#FFE380',
400: '#FFC400',
500: '#FFAB00',
600: '#FF7E1D',
700: '#F06700',
800: '#CC5800',
},
purple: {
100: '#EAE6FF',
200: '#C9C1F5',
300: '#AEA2F1',
400: '#8272DF',
500: '#5D48D5',
600: '#422CC1',
700: '#332296',
800: '#2A1C7D',
},
green: {
100: '#E3FCF4',
200: '#ABF5DC',
300: '#79F2CA',
400: '#65DCB4',
500: '#36B389',
600: '#008559',
700: '#006644',
800: '#005236',
},
red: {
100: '#FFEBE6',
200: '#FFBDAD',
300: '#FF8F73',
400: '#FF7C5C',
500: '#F6491E',
600: '#DC3309',
700: '#BA2B08',
800: '#9D2507',
},
}

/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{ts,tsx,html}'],
theme: {
colors: {
grey: {
...colors.grey,
DEFAULT: colors.grey[700],
},
blue: {
...colors.blue,
DEFAULT: colors.blue[600],
},
yellow: {
...colors.yellow,
DEFAULT: colors.yellow[600],
},
purple: {
...colors.purple,
DEFAULT: colors.purple[600],
},
green: {
...colors.green,
DEFAULT: colors.green[600],
},
red: {
...colors.red,
DEFAULT: colors.red[600],
},
black: '#000000',
white: '#FFFFFF',
},
boxShadow: {
sm: '0px 2px 4px 0px rgba(25, 33, 46, 0.20)',
md: '0px 6px 8px 0px rgba(25, 33, 46, 0.12)',
lg: '0px 10px 16px 0px rgba(25, 33, 46, 0.10)',
xl: '0px 16px 24px 0px rgba(25, 33, 46, 0.10)',
},
fontFamily: {
sans: ['Inter, Arial , Verdana , Helvetica , sans-serif'],
},
},
variants: {
extend: {},
},
plugins: [],
}

0 comments on commit 98eb5f6

Please sign in to comment.