style presets.js file
This commit is contained in:
parent
c9e244712b
commit
2e5f562c4f
98
presets.js
vendored
98
presets.js
vendored
@ -1,6 +1,7 @@
|
||||
const defaultTheme = require('tailwindcss/defaultTheme')
|
||||
|
||||
const fontFamily = defaultTheme.fontFamily;
|
||||
|
||||
fontFamily['sans'] = [
|
||||
'Quicksand', // <-- Quicksand is default sans font now
|
||||
'system-ui',
|
||||
@ -8,6 +9,7 @@ fontFamily['sans'] = [
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
|
||||
content: [
|
||||
'./resources/views/**/*.blade.php',
|
||||
'./resources/assets/js/**/*.vue',
|
||||
@ -19,43 +21,54 @@ module.exports = {
|
||||
{
|
||||
pattern: /^[^/&]*$/,
|
||||
},
|
||||
|
||||
{
|
||||
pattern: /^p-/,
|
||||
variants: ['ltr', 'rtl'],
|
||||
},
|
||||
|
||||
{
|
||||
pattern: /^m-/,
|
||||
variants: ['ltr', 'rtl'],
|
||||
},
|
||||
|
||||
{
|
||||
pattern: /^left-/,
|
||||
variants: ['ltr', 'rtl'],
|
||||
},
|
||||
|
||||
{
|
||||
pattern: /^right-/,
|
||||
variants: ['ltr', 'rtl'],
|
||||
},
|
||||
|
||||
{
|
||||
pattern: /^w/,
|
||||
},
|
||||
|
||||
{
|
||||
pattern: /^h/,
|
||||
},
|
||||
|
||||
{
|
||||
pattern: /^inset/,
|
||||
},
|
||||
|
||||
{
|
||||
pattern: /^top/,
|
||||
},
|
||||
|
||||
{
|
||||
pattern: /^bottom/,
|
||||
},
|
||||
|
||||
{
|
||||
pattern: /^translate/,
|
||||
},
|
||||
],
|
||||
|
||||
darkMode: 'class', // or 'media' or 'class',
|
||||
|
||||
theme: {
|
||||
fontFamily: fontFamily,
|
||||
|
||||
@ -84,6 +97,7 @@ module.exports = {
|
||||
'800': '#426131',
|
||||
'900': '#364f28'
|
||||
},
|
||||
|
||||
'purple': {
|
||||
DEFAULT: '#55588b',
|
||||
'50': '#f7f7f9',
|
||||
@ -97,6 +111,7 @@ module.exports = {
|
||||
'800': '#333553',
|
||||
'900': '#2a2b44'
|
||||
},
|
||||
|
||||
'red': {
|
||||
DEFAULT: '#cc0000',
|
||||
'50': '#fcf2f2',
|
||||
@ -110,6 +125,7 @@ module.exports = {
|
||||
'800': '#7a0000',
|
||||
'900': '#640000'
|
||||
},
|
||||
|
||||
'orange': {
|
||||
DEFAULT: '#f59e0b',
|
||||
'50': '#fffaf3',
|
||||
@ -123,6 +139,7 @@ module.exports = {
|
||||
'800': '#935f07',
|
||||
'900': '#784d05'
|
||||
},
|
||||
|
||||
'blue': {
|
||||
DEFAULT: '#006ea6',
|
||||
'50': '#f2f8fb',
|
||||
@ -136,6 +153,7 @@ module.exports = {
|
||||
'800': '#004264',
|
||||
'900': '#003651'
|
||||
},
|
||||
|
||||
'black': {
|
||||
DEFAULT: '#424242',
|
||||
'50': '#f6f6f6',
|
||||
@ -149,16 +167,19 @@ module.exports = {
|
||||
'800': '#282828',
|
||||
'900': '#202020'
|
||||
},
|
||||
|
||||
'lilac': {
|
||||
DEFAULT: '#F8F9FE',
|
||||
'100': '#F5F7FA',
|
||||
'300': '#EDF0FC',
|
||||
'900': '#DCE2F9'
|
||||
},
|
||||
|
||||
'golden': {
|
||||
DEFAULT: '#D1C989',
|
||||
'900': '#BFB882',
|
||||
},
|
||||
|
||||
'rose': {
|
||||
DEFAULT: '#f43f5e',
|
||||
'50' : '#fff1f2',
|
||||
@ -172,6 +193,7 @@ module.exports = {
|
||||
'800': '#9f1239',
|
||||
'900': '#881337'
|
||||
},
|
||||
|
||||
'silver': {
|
||||
DEFAULT: '#7F8997',
|
||||
'50': '#F0F1F3',
|
||||
@ -185,6 +207,7 @@ module.exports = {
|
||||
'800': '#3A4555',
|
||||
'900': '#323B49'
|
||||
},
|
||||
|
||||
'pastel_green': {
|
||||
DEFAULT: '#E0F1E3',
|
||||
'50': '#E0F1E3',
|
||||
@ -198,6 +221,7 @@ module.exports = {
|
||||
'800': '#56765F',
|
||||
'900': '#4D6A55'
|
||||
},
|
||||
|
||||
'peach_orange': {
|
||||
DEFAULT: '#FCF2D9',
|
||||
'50': '#FCF2D9',
|
||||
@ -211,6 +235,7 @@ module.exports = {
|
||||
'800': '#9C7430',
|
||||
'900': '#8C692B'
|
||||
},
|
||||
|
||||
'wisteria': {
|
||||
DEFAULT: '#E5E4FA',
|
||||
'50': '#E5E4FA',
|
||||
@ -224,6 +249,7 @@ module.exports = {
|
||||
'800': '#565577',
|
||||
'900': '#4D4C6B'
|
||||
},
|
||||
|
||||
'status': {
|
||||
'success': '#F1F6EE',
|
||||
'danger': '#fae6e6',
|
||||
@ -234,6 +260,7 @@ module.exports = {
|
||||
'canceled': '#282828',
|
||||
'warning': '#FEF5E7'
|
||||
},
|
||||
|
||||
'text-status': {
|
||||
'success': '#63914A',
|
||||
'danger': '#B80000',
|
||||
@ -244,16 +271,25 @@ module.exports = {
|
||||
'canceled': '#ffffff',
|
||||
'warning': '#b87708'
|
||||
},
|
||||
|
||||
'body': {
|
||||
DEFAULT: '#fcfcfc'
|
||||
},
|
||||
|
||||
'light-gray': '#C7C9D9',
|
||||
|
||||
'dark-blue': '#15284B',
|
||||
|
||||
'lighter-gray': '#F2F2F5',
|
||||
|
||||
'purple-lighter': '#F2F4FC',
|
||||
|
||||
'modal-background': 'rgba(0, 0, 0, 0.3)',
|
||||
|
||||
'black-medium': '#424242',
|
||||
|
||||
'red-light': '#FF6B6B',
|
||||
|
||||
'default': '#6ea152',
|
||||
},
|
||||
|
||||
@ -282,32 +318,39 @@ module.exports = {
|
||||
'5%, 15%, 25%, 35%, 45%': { transform: 'translate3d(-0.5px, 0, 0)' },
|
||||
'100%': { transform: 'translate3d(0.5px, 0, 0)' },
|
||||
},
|
||||
|
||||
pulsate_transparent: {
|
||||
'0%': { transform: 'scale(0.9, 0.9)' },
|
||||
'50%': { transform: 'scale(1.14, 1.14)' },
|
||||
'100%': { transform: 'scale(0.9, 0.9)' },
|
||||
},
|
||||
|
||||
pulsate: {
|
||||
'0%': { transform: 'transform: scale(1, 1)', opacity: '0.05' },
|
||||
'50%': { opacity: '0.25' },
|
||||
'100%': { transform: 'scale(1.5, 1.5)', opacity: '0' },
|
||||
},
|
||||
|
||||
spin: {
|
||||
'0%': { transform: 'rotate(0deg)' },
|
||||
'100%': { transform: 'rotate(360deg)' },
|
||||
},
|
||||
|
||||
submit: {
|
||||
'0%': { boxShadow: '0 28px 0 -28px #ffffff' },
|
||||
'100%': { boxShadow: '0 28px 0 #ffffff' },
|
||||
},
|
||||
|
||||
submit_second: {
|
||||
'0%': { boxShadow: '0 28px 0 -28px #55588b' },
|
||||
'100%': { boxShadow: '0 28px 0 #55588b' },
|
||||
},
|
||||
|
||||
marquee: {
|
||||
'0%': { transform: 'translateX(0%)' },
|
||||
'100%': { transform: 'translateX(-100%)' },
|
||||
},
|
||||
|
||||
marquee_long: {
|
||||
'0%': { transform: 'translateX(0%)' },
|
||||
'100%': { transform: 'translateX(-350%)' },
|
||||
@ -347,20 +390,53 @@ module.exports = {
|
||||
},
|
||||
|
||||
appearance: ['hover', 'focus'],
|
||||
|
||||
container: {
|
||||
center: true,
|
||||
},
|
||||
},
|
||||
|
||||
variants: {
|
||||
transitionProperty: ['responsive', 'motion-safe', 'motion-reduce'],
|
||||
float: ['responsive', 'direction'],
|
||||
margin: ['responsive', 'direction'],
|
||||
padding: ['responsive', 'direction'],
|
||||
inset: ['responsive', 'direction'],
|
||||
textAlign: ['responsive', 'direction'],
|
||||
space: ['responsive', 'direction'],
|
||||
rotate: ['responsive', 'direction'],
|
||||
transitionProperty: [
|
||||
'responsive',
|
||||
'motion-safe',
|
||||
'motion-reduce'
|
||||
],
|
||||
|
||||
float: [
|
||||
'responsive',
|
||||
'direction'
|
||||
],
|
||||
|
||||
margin: [
|
||||
'responsive',
|
||||
'direction'
|
||||
],
|
||||
|
||||
padding: [
|
||||
'responsive',
|
||||
'direction'
|
||||
],
|
||||
|
||||
inset: [
|
||||
'responsive',
|
||||
'direction'
|
||||
],
|
||||
|
||||
textAlign: [
|
||||
'responsive',
|
||||
'direction'
|
||||
],
|
||||
|
||||
space: [
|
||||
'responsive',
|
||||
'direction'
|
||||
],
|
||||
|
||||
rotate: [
|
||||
'responsive',
|
||||
'direction'
|
||||
],
|
||||
|
||||
extend: {
|
||||
display: ['group-hover'],
|
||||
@ -377,22 +453,28 @@ module.exports = {
|
||||
require('@tailwindcss/forms'),
|
||||
require('@themesberg/flowbite/plugin'),
|
||||
require('tailwindcss-dir')(),
|
||||
|
||||
function ({ addComponents }) {
|
||||
addComponents({
|
||||
'.container': {
|
||||
maxWidth: '100%',
|
||||
|
||||
'@screen sm': {
|
||||
maxWidth: '100%',
|
||||
},
|
||||
|
||||
'@screen md': {
|
||||
maxWidth: '100%',
|
||||
},
|
||||
|
||||
'@screen lg': {
|
||||
maxWidth: '1000px',
|
||||
},
|
||||
|
||||
'@screen xl': {
|
||||
maxWidth: '895px',
|
||||
},
|
||||
|
||||
'@screen 2xl': {
|
||||
maxWidth: '1145px',
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user