File tree Expand file tree Collapse file tree 4 files changed +22
-4
lines changed
Expand file tree Collapse file tree 4 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 11node_modules
2+ dist
Original file line number Diff line number Diff line change @@ -35,5 +35,9 @@ <h2 class="text-2xl font-bold text-table-header mb-2">Card Title 2</h2>
3535 </ a >
3636 </ footer >
3737
38+ < h1 class ="text-4xl font-bold text-table-header "> Hello</ h1 >
39+ < p class ="text-highlight "> Custom color paragraph</ p >
40+ < a class ="bg-table-header text-white px-4 py-2 rounded hover:bg-highlight "> Button</ a >
41+
3842</ body >
3943</ html >
Original file line number Diff line number Diff line change 11/** @type {import('tailwindcss').Config } */
22module . exports = {
3- content : [ './*.html' , './*.js' ] ,
3+ content : [
4+ './*.html' ,
5+ './**/*.html' ,
6+ './*.js' ,
7+ './**/*.js'
8+ ] ,
9+ safelist : [
10+ 'bg-table-header' ,
11+ 'text-highlight' ,
12+ ] ,
413 theme : {
514 extend : {
615 colors : {
7- 'table-header' : '#091a52' ,
8- 'highlight' : '#ff5733' ,
16+ // 'table-header': '#091a52',
17+ // 'highlight': '#ff5733',
918 } ,
1019 } ,
1120 } ,
12- safelist : [ 'bg-table-header' , 'text-highlight' ] ,
1321 plugins : [ ] ,
1422} ;
Original file line number Diff line number Diff line change 11@tailwind base;
22@tailwind components;
33@tailwind utilities;
4+
5+ @theme {
6+ --color-table-header : # 091a52 ;
7+ --color-highlight : # ff5733 ;
8+ }
You can’t perform that action at this time.
0 commit comments