Skip to content

Commit

Permalink
updated the tailwind.config.js file with the official colours
Browse files Browse the repository at this point in the history
  • Loading branch information
suryaansh001 committed Dec 20, 2024
1 parent f1757c1 commit 55a32a9
Showing 1 changed file with 84 additions and 67 deletions.
151 changes: 84 additions & 67 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,23 @@ module.exports = {
],

// https://github.com/tailwindlabs/tailwindcss-forms
plugins: [require('@tailwindcss/typography'), require('daisyui'), require('tailwindcss-radix')()],


// Include TailwindCSS typography, DaisyUI, and Radix UI plugins
plugins: [
require('@tailwindcss/typography'),
require('daisyui'),
require('tailwindcss-radix')()
],

theme: {
extend: {
fontFamily: {
// Custom font
sans: ['ISO', ...defaultTheme.fontFamily.sans]
},
colors: {
// Custom brand colors
'custom-green': '#8BB191',
'ob-primary': '#F15E40',
'ob-secondary': '#8BB191',
Expand All @@ -27,88 +37,95 @@ module.exports = {
'area-cue': '#004F6E', // background cue for Areas
'sport-climb-cue': '#00b896', // cue for sport climbs
shadow: '#84848442',
tooltip: 'rgb(254 243 199)' // background for Daist tooltip bg-amber-100
tooltip: 'rgb(254 243 199)' // background for DaisyUI tooltip bg-amber-100
},
height: {
// Custom viewport-based heights
'screen-85': '85vh',
'screen-80': '80vh',
'screen-20': '20vh',
'screen-15': '15vh'
},
screens: {
// Custom screen size for very large displays (2560px and above)
'3xl': '2560px'
}
}
},

daisyui: {
styled: true,
themes: [{
light: {
...require('daisyui/src/theming/themes')['[data-theme=light]'],
primary: '#111827',
'primary-focus': 'rgb(51 65 85)',
'primary-content': '#FFFFFF',
secondary: '#b1c077', // OB brand secondary
accent: '#F15E40', // OB primary brand
'accent-content': '#FFFFFF',
neutral: '#111826',
'neutral-content': 'white',
info: '#65C3C8',
error: '#ec4899',
'base-content': 'rgb(23 23 23)', // neutral-900
'base-300': 'rgb(115 115 115)', // neutral-500
'base-200': 'rgb(250 250 250)', // neutral-50
'base-100': 'white',
'--rounded-box': '0.5rem',
'--rounded-btn': '0.25rem', // border radius rounded-btn utility class, used in buttons and similar element
// '--border-color': '#AABAC0',
'--btn-text-case': s => s,
'--input-size-xs': '1.25rem',
'--input-size-sm': '1.75rem',
'--input-size-md': '2.25rem',
'--input-size-lg': '3rem',
'.btn,.btn-md': {
height: 'var(--input-size-md)',
'min-height': 'var(--input-size-md)'
},
'.btn-xs': {
height: 'var(--input-size-xs)',
'min-height': 'var(--input-size-xs)'
},
'.btn-sm': {
height: 'var(--input-size-sm)',
'min-height': 'var(--input-size-sm)'
},
'.btn-lg': {
height: 'var(--input-size-lg)',
'min-height': 'var(--input-size-lg)'
},
'.btn-square,.btn-circle': {
width: 'var(--input-size-md)'
},
'.btn-square.btn-xs,.btn-circle.btn-xs': {
width: 'var(--input-size-xs)'
},
'.btn-square.btn-sm,.btn-circle.btn-sm': {
width: 'var(--input-size-sm)'
},
'.btn-square.btn-lg,.btn-circle.btn-lg': {
width: 'var(--input-size-lg)'
},
'.file-input,.select,.input': {
height: 'var(--input-size-md)'
},
'.file-input.file-input-xs,.select.select-xs,.input.input-xs': {
height: 'var(--input-size-xs)'
},
'.file-input.file-input-sm,.select.select-sm,.input.input-sm': {
height: 'var(--input-size-sm)'
},
'.file-input.file-input-lg,.select.select-lg,.input.input-lg': {
height: 'var(--input-size-lg)'
themes: [
{
light: {
// Custom DaisyUI light theme with brand colors
...require('daisyui/src/theming/themes')['[data-theme=light]'],
primary: '#111827',
'primary-focus': 'rgb(51 65 85)',
'primary-content': '#FFFFFF',
secondary: '#b1c077', // OB brand secondary
accent: '#F15E40', // OB primary brand
'accent-content': '#FFFFFF',
neutral: '#111826',
'neutral-content': 'white',
info: '#65C3C8',
error: '#ec4899',
'base-content': 'rgb(23 23 23)', // neutral-900
'base-300': 'rgb(115 115 115)', // neutral-500
'base-200': 'rgb(250 250 250)', // neutral-50
'base-100': 'white',
'--rounded-box': '0.5rem',
'--rounded-btn': '0.25rem', // border radius for buttons
'--btn-text-case': s => s,
'--input-size-xs': '1.25rem',
'--input-size-sm': '1.75rem',
'--input-size-md': '2.25rem',
'--input-size-lg': '3rem',

// Button and input sizes based on theme variables
'.btn,.btn-md': {
height: 'var(--input-size-md)',
'min-height': 'var(--input-size-md)'
},
'.btn-xs': {
height: 'var(--input-size-xs)',
'min-height': 'var(--input-size-xs)'
},
'.btn-sm': {
height: 'var(--input-size-sm)',
'min-height': 'var(--input-size-sm)'
},
'.btn-lg': {
height: 'var(--input-size-lg)',
'min-height': 'var(--input-size-lg)'
},
'.btn-square,.btn-circle': {
width: 'var(--input-size-md)'
},
'.btn-square.btn-xs,.btn-circle.btn-xs': {
width: 'var(--input-size-xs)'
},
'.btn-square.btn-sm,.btn-circle.btn-sm': {
width: 'var(--input-size-sm)'
},
'.btn-square.btn-lg,.btn-circle.btn-lg': {
width: 'var(--input-size-lg)'
},
'.file-input,.select,.input': {
height: 'var(--input-size-md)'
},
'.file-input.file-input-xs,.select.select-xs,.input.input-xs': {
height: 'var(--input-size-xs)'
},
'.file-input.file-input-sm,.select.select-sm,.input.input-sm': {
height: 'var(--input-size-sm)'
},
'.file-input.file-input-lg,.select.select-lg,.input.input-lg': {
height: 'var(--input-size-lg)'
}
}
}
}],
],
base: true,
utils: true,
logs: false,
Expand Down

0 comments on commit 55a32a9

Please sign in to comment.