🔧 config: using sass

:%s
This commit is contained in:
lytrankieio123
2021-08-20 11:30:21 +07:00
parent d8ec1fa717
commit 1fa9d08a79
12 changed files with 68 additions and 32 deletions

View File

@@ -1,5 +0,0 @@
/* style demo here */
.header {
color: green;
}

View File

@@ -0,0 +1,12 @@
.header {
.button {
@apply font-bold py-2 px-4 rounded;
}
.btnBlue {
@apply bg-blue hover:bg-cyan text-white font-bold py-2 px-4;
border-radius: theme("borderRadius.custom");
}
.link {
color: theme("colors.pink");
}
}

View File

@@ -1,14 +1,22 @@
import { FC, useRef, useEffect } from 'react'
import s from './Header.module.css'
import { FC } from 'react'
import s from './Header.module.scss'
interface Props {
className?: string
children?: any
}
const Header: FC<Props> = ({ }) => {
const Header: FC<Props> = ({ }:Props ) => {
return (
<div className={s.header}>This is Header</div>
<div className={s.header}>
This is Header
<button className={s.btnBlue}>
Button
</button>
<div className={s.link}>
Test link style
</div>
</div>
)
}