Skip to content

Commit

Permalink
pkp/pkp-lib#10850 Re-add tailwind.config.js file
Browse files Browse the repository at this point in the history
  • Loading branch information
blesildaramirez committed Jan 29, 2025
1 parent 6ae5bf7 commit e9e60d2
Showing 1 changed file with 193 additions and 0 deletions.
193 changes: 193 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
/** @type {import('tailwindcss').Config} */

import defaultTheme from 'tailwindcss/defaultTheme.js';

const colors = {
primary: '#006798',
hover: '#0082BF',
attention: '#D00A0A',
success: '#00B24E',
negative: '#D00A6C',
'stage-desk-review': '#9B6FF8',
'stage-in-review': '#E08914',
'stage-copyediting': '#F66AAF',
'stage-production': '#4AC7E2',
'stage-scheduled-for-publishing': '#DED15D',
'stage-incomplete-submission': '#777777',
'stage-published': '#00B24E',
'stage-declined': '#D00A0A',
'profile-1': '#AB7D94',
'profile-2': '#598D70',
'profile-3': '#9B7CDC',
'profile-4': '#89AAE0',
'profile-5': '#EBDA68',
'profile-6': '#BD726C',
transparent: 'transparent',
};

export default {
content: ['./index.html', './**/*.vue', './**/*stories.js', './**/*.tpl'],
theme: {
backgroundColor: {
...colors,
default: '#EAEDEE',
secondary: '#FFFFFF',
tertiary: 'rgba(234, 237, 238, 0.3)',
blur: 'rgba(0,0,0,0.5)',
'selection-light': '#D5E9F2',
'selection-dark': '#002C40',
disabled: 'rgba(28, 27, 31, 0.1)',
},
textColor: {
...colors,
default: '#222222',
secondary: '#505050',
heading: '#01354F',
disabled: '#4E4F4F',
'on-dark': '#FFFFFF',
},
borderColor: {
...colors,
dark: '#696969',
light: '#BBBBBB',
'form-fields': '#777777',
transparent: 'transparent',
},
borderRadius: {
DEFAULT: '4px',
full: '9999px',
},
boxShadow: {
DEFAULT: '0 0 4px rgba(0, 0, 0, 0.5);',
},
colors: {
...colors,
},
fontFamily: {
// this sets default font
sans: ['"Noto Sans"', ...defaultTheme.fontFamily.sans],
},
fontSize: {
'xs-normal': [
'0.625rem' /** 10px */,
{
lineHeight: '0.75rem',
fontWeight: '400',
},
],
'sm-light': [
'0.6875rem' /** 11px */,
{
lineHeight: '0.875rem',
fontWeight: '300',
},
],
'sm-normal': [
'0.6875rem' /** 11px */,
{
lineHeight: '0.875rem',
fontWeight: '400',
},
],
'base-light': [
'0.75rem' /** 12px */,
{
lineHeight: '1rem',
fontWeight: '300',
},
],
'base-normal': [
'0.75rem' /** 12px */,
{
lineHeight: '1rem',
fontWeight: '400',
},
],
'base-bold': [
'0.75rem' /** 12px */,
{
lineHeight: '1rem',
fontWeight: '700',
},
],
'lg-normal': [
'0.875rem' /** 14px */,
{
lineHeight: '1.25rem',
fontWeight: '400',
},
],
'lg-medium': [
'0.875rem' /** 14px */,
{
lineHeight: '1.25rem',
fontWeight: '500',
},
],
'lg-semibold': [
'0.875rem' /** 14px */,
{
lineHeight: '1.25rem',
fontWeight: '600',
},
],
'lg-bold': [
'0.875rem' /** 14px */,
{
lineHeight: '1.25rem',
fontWeight: '700',
},
],
'xl-bold': [
'1rem' /** 16px */,
{
lineHeight: '1.5rem',
fontWeight: '700',
},
],
'2xl-bold': [
'1.125rem' /** 18px */,
{
lineHeight: '1.75rem',
fontWeight: '700',
},
],
'3xl-normal': [
'1.25rem' /** 20px */,
{
lineHeight: '1.75rem',
fontWeight: '400',
},
],
'3xl-medium': [
'1.25rem' /** 20px */,
{
lineHeight: '1.75rem',
fontWeight: '500',
},
],
'3xl-bold': [
'1.25rem' /** 20px */,
{
lineHeight: '1.75rem',
fontWeight: '700',
},
],
'4xl-bold': [
'1.5rem' /** 24px */,
{
lineHeight: '2rem',
fontWeight: '700',
},
],
'5xl-bold': [
'2.25rem' /** 36px */,
{
lineHeight: '2.5rem',
fontWeight: '700',
},
],
},
},
plugins: [],
};

0 comments on commit e9e60d2

Please sign in to comment.