Skip to content

Instantly share code, notes, and snippets.

@lambdaxyzt
Created January 13, 2024 07:27
Show Gist options
  • Save lambdaxyzt/a11e8f77b79d42cf72de118fc6b40ab6 to your computer and use it in GitHub Desktop.
Save lambdaxyzt/a11e8f77b79d42cf72de118fc6b40ab6 to your computer and use it in GitHub Desktop.
my custome tailwind css
@font-face {
font-family: "Roboto";
src:url(...);
font-weight: bold;
}
@font-face {
font-family: "Roboto";
src:url(...);
font-weight: normal;
}
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
body {
font-family: "Roboto" , ...;
}
h1,h2,h3,h4,h5,h6 {
display: block;
font-weight: bold;
}
h1 {
font-size: 2em;
margin: 0.67em 0;
}
h2 {
font-size: 1.5em;
margin: 0.83em 0;
}
h3 {
font-size: 1.17em;
margin: 1em 0;
}
h4 {
margin: 1.33em 0;
}
h5 {
font-size: .83em;
margin: 1.67em 0;
}
h6 {
font-size: .67em;
margin: 2.33em 0;
}
p {
margin-top: 1em;
margin-bottom: 1em;
}
}
// #######
// desktop first
// #######
export default {
theme: {
screens: {
'min_xs': {'min':'320px'},
'xs': {'max':'319px'},
'min_sm': {'min':'640px'},
'sm': {'max':'639px'},
'min_md': {'min':'768px'},
'md': {'max':'767px'},
'min_lg': {'min':'1024px'},
'lg': {'max':'1023px'},
'min_xl': {'min':'1280px'},
'xl': {'max':'1279px'},
'min_2xl': {'min':'1536px'},
'2xl': {'max':'1535px'},
},
extend: {},
},
plugins: [],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment