157 lines
4.1 KiB
JavaScript
Raw Normal View History

/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
2021-08-01 14:27:44 -07:00
const defaultTheme = require('tailwindcss/defaultTheme');
// Primary colors for text and controls
const primary = '#7147E8';
2021-09-14 14:35:57 +05:30
const primaryII = '#8D6AF1';
const primaryHover = '#5523E0';
const primaryActive = '#450DE2';
const primaryHoverLite = '#DBD1F9';
const secondary = '#B02AAC';
const secondaryBG = '#B02AAC40';
// state colors
const success = '#008376';
const error = '#FF4C3B';
const info = '#1890FF';
const warning = '#FFC34E';
const warningBG = '#FFC34E40';
// status colors
const statusSuccess = '#07A35A';
const statusFailed = '#E54937';
const statusRunning = '#276EF1';
const statusQueued = '#777777';
// Background colors
const bodyBG = '#FCFBFE';
const bodyHoverBG = '#F9F8FD';
const tagBG = '#EEEAF8';
const primaryBG = '#7147E840'; // 'rgba(113, 71, 232, 0.25)';
const backdropBG = '#302E36';
// Borders and Separators
const mainBorder = '#E2DCE4';
const mainSeparator = '#D9CEEE';
// Text color - Gray variants
const textBody = '#37352f';
const textMuted = '#6B7280';
const textDark = '#000000';
const textMutedLite = '#6B728026'; // 'rgba(107, 114, 128, 0.15)'
2021-08-01 14:27:44 -07:00
module.exports = {
purge: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'],
darkMode: false,
prefix: 'tw-',
theme: {
screens: {
sm: '480px',
md: '768px',
lg: '976px',
xl: '1440px',
},
extend: {
borderColor: {
'orange-400': '#F9826C',
main: mainBorder,
text: textBody,
hover: textBody,
focus: primary,
2021-08-01 14:27:44 -07:00
search: '#D5D6D9',
},
boxShadow: {
modal: '1px 1px 5px rgba(0, 0, 0, 0.2)',
},
colors: {
'grey-body': textBody,
'grey-muted': textMuted,
'grey-muted-lite': textMutedLite,
'grey-dark': textDark,
'grey-backdrop': backdropBG,
'primary-lite': primaryBG,
primary: primary,
2021-09-14 14:35:57 +05:30
'primary-II': primaryII,
'primary-hover': primaryHover,
'primary-active': primaryActive,
'primary-hover-lite': primaryHoverLite,
secondary: secondary,
'secondary-lite': secondaryBG,
'body-main': bodyBG,
'body-hover': bodyHoverBG,
tag: tagBG,
success: success,
error: error,
warning: warning,
'warning-lite': warningBG,
'status-success': statusSuccess,
'status-failed': statusFailed,
'status-running': statusRunning,
'status-queued': statusQueued,
info: info,
separator: mainSeparator,
2021-08-01 14:27:44 -07:00
},
fontFamily: {
sans: ['Inter', ...defaultTheme.fontFamily.sans],
},
fontSize: {
h1: '2.5rem',
h2: '2rem',
h3: '1.75rem',
h4: '1.5rem',
h5: '1.25rem',
h6: '14px',
body: '14px',
},
height: {
100: '25rem',
},
width: {
120: '30rem',
},
2021-08-01 14:27:44 -07:00
maxHeight: {
32: '8rem',
'90vh': '90vh',
2021-08-01 14:27:44 -07:00
},
minHeight: {
32: '8rem',
168: '10.5rem',
tab: '24rem',
2021-08-01 14:27:44 -07:00
},
padding: {
'5px': '5px',
},
zIndex: {
9999: 9999,
},
},
},
variants: {
extend: {
backgroundColor: ['checked'],
2021-08-01 14:27:44 -07:00
borderStyle: ['hover'],
borderWidth: ['hover'],
display: ['group-hover'],
opacity: ['disabled'],
2021-08-01 14:27:44 -07:00
},
},
plugins: [require('@tailwindcss/custom-forms')],
2021-08-01 14:27:44 -07:00
};