Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nextjs-starter-template
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Moorthy G
nextjs-starter-template
Commits
f926f4fb
Commit
f926f4fb
authored
Jan 25, 2024
by
Moorthy G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(tailwind.config): extend theme configuration instread of config overwrite
parent
8ed27a6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
20 deletions
+13
-20
tailwind.config.ts
tailwind.config.ts
+13
-20
No files found.
tailwind.config.ts
View file @
f926f4fb
import
type
{
Config
}
from
'tailwindcss'
;
import
type
{
Config
}
from
'tailwindcss'
;
import
colors
from
'tailwindcss/colors'
;
const
config
:
Config
=
{
const
config
:
Config
=
{
content
:
[
content
:
[
...
@@ -8,26 +7,20 @@ const config: Config = {
...
@@ -8,26 +7,20 @@ const config: Config = {
'./app/**/*.{js,ts,jsx,tsx,mdx}'
'./app/**/*.{js,ts,jsx,tsx,mdx}'
],
],
theme
:
{
theme
:
{
colors
:
{
gray
:
colors
.
gray
,
primary
:
{
DEFAULT
:
'hsl(340, 76%, 47%)'
,
light
:
'hsl(340, 76%, 57%)'
,
dark
:
'hsl(340, 76%, 37%)'
},
secondary
:
{
DEFAULT
:
'hsl(205, 76%, 47%)'
,
light
:
'hsl(205, 76%, 57%)'
,
dark
:
'hsl(205, 76%, 37%)'
},
light
:
'#f4f4f4'
,
dark
:
'#222222'
},
extend
:
{
extend
:
{
backgroundImage
:
{
colors
:
{
'gradient-radial'
:
'radial-gradient(var(--tw-gradient-stops))'
,
primary
:
{
'gradient-conic'
:
DEFAULT
:
'hsl(340, 76%, 47%)'
,
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))'
light
:
'hsl(340, 76%, 57%)'
,
dark
:
'hsl(340, 76%, 37%)'
},
secondary
:
{
DEFAULT
:
'hsl(205, 76%, 47%)'
,
light
:
'hsl(205, 76%, 57%)'
,
dark
:
'hsl(205, 76%, 37%)'
},
light
:
'#f4f4f4'
,
dark
:
'#222222'
}
}
}
}
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment