Skip to content

Commit

Permalink
chore: format config files
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Aug 18, 2021
1 parent 22eaeb0 commit cc93599
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
plugins: [require('tailwindcss'), require('autoprefixer'), require("cssnano")],
plugins: [require('tailwindcss'), require('autoprefixer'), require('cssnano')],
};
3 changes: 1 addition & 2 deletions postoptimize.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { minifyFiles as jsonOptimize } from "@aminya/minijson"
import { minifyFiles as jsonOptimize } from '@aminya/minijson';
import { optimize as svgOptimize } from 'svgo';
import { readFile, writeFile } from 'fs/promises';
import glob from 'fast-glob';
Expand All @@ -17,7 +17,6 @@ const jsonFiles = await glob(['./dist/**/*.json'], {
absolute: true,
});


await Promise.all([
jsonOptimize(jsonFiles),
...svgFiles.map(async (svgFile) => {
Expand Down
16 changes: 8 additions & 8 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ module.exports = {
theme: {
extend: {
fontSize: {
'xxs': '.55rem',
xxs: '.55rem',
},
colors: {
primary: '#4483c1',
solid: {
default: '#2c4f7c',
dark: '#335d92',
gray: '#414042',
lightgray: "#f3f5f7",
lightgray: '#f3f5f7',
medium: '#446b9e',
light: '#4f88c6',
accent: '#66e6ac',
Expand All @@ -24,21 +24,21 @@ module.exports = {
DEFAULT: {
css: {
color: '#333',
fontFamily: 'Gordita' ,
fontFamily: 'Gordita',
h1: {
fontWeight: '600',
fontSize: '1.75rem',
borderBottom: '1px solid #e5e7eb',
paddingBottom: '1rem',
marginTop: '2rem',
color: '#2c4f7c'
color: '#2c4f7c',
},
h2: {
fontWeight: '600',
borderBottom: '1px solid #e5e7eb',
paddingBottom: '1rem',
marginTop: '2rem',
color: '#2c4f7c'
color: '#2c4f7c',
},
a: {
color: '#999',
Expand All @@ -50,8 +50,8 @@ module.exports = {
},
},
},
backgroundImage: theme => ({
'hero': "url('/src/assets/shapes/header.svg')",
backgroundImage: (theme) => ({
hero: "url('/src/assets/shapes/header.svg')",
'blocks-one': "url('/src/assets/shapes/blocks1.svg')",
'blocks-two': "url('/src/assets/shapes/blocks2.svg')",
'blocks-three': "url('/src/assets/shapes/blocks3.svg')",
Expand All @@ -60,7 +60,7 @@ module.exports = {
center: true,
},
borderRadius: {
'6xl': '3.5rem'
'6xl': '3.5rem',
},
fontFamily: {
display: ['Gordita', ...theme.fontFamily.sans],
Expand Down
6 changes: 3 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { defineConfig } from 'vite';
import solid from 'vite-plugin-solid';
import { VitePWA, Options as VitePWAOptions } from 'vite-plugin-pwa'
import { VitePWA, Options as VitePWAOptions } from 'vite-plugin-pwa';
import manifest from './src/assets/manifest.json';

const pwaOptions: Partial<VitePWAOptions> = {
registerType: 'autoUpdate',
registerType: 'autoUpdate',
manifest,
workbox: {}
workbox: {},
};

export default defineConfig({
Expand Down

0 comments on commit cc93599

Please sign in to comment.