@paolojulian.dev/design-system 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,3 +8,34 @@ The design system can be accessed here:
8
8
  ## Development
9
9
 
10
10
  This design system is made with Vite, React and TailwindCSS
11
+
12
+ ## Installation
13
+ ```bash
14
+ npm install @paolojulian.dev/design-system
15
+ ```
16
+
17
+ ### Tailwind Config
18
+ ```js
19
+ // tailwind.config.js
20
+ import type { Config } from 'tailwindcss';
21
+ import colors from 'tailwindcss/colors';
22
+
23
+ const config: Pick<Config, 'content' | 'presets' | 'theme'> = {
24
+ presets: [
25
+ require('@paolojulian.dev/design-system/tailwind-config/tailwind.config.js'),
26
+ ],
27
+ content: ['./src/**/*.tsx'],
28
+ theme: {
29
+ extend: {
30
+ // Your custom styles
31
+ },
32
+ },
33
+ };
34
+
35
+ export default config;
36
+ ```
37
+
38
+ ### Styles
39
+ ```css
40
+ @import '@paolojulian.dev/design-system/style.css';
41
+ ```
@@ -0,0 +1,25 @@
1
+ import type { Config } from "tailwindcss";
2
+ import colors from "tailwindcss/colors";
3
+
4
+ export default {
5
+ content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
6
+ theme: {
7
+ extend: {},
8
+ colors: {
9
+ black: "#0D0D0D",
10
+ white: "#FCF5ED",
11
+ primary: "#CE5A67",
12
+ secondary: "#F4BF96",
13
+ gray: {
14
+ darker: colors.stone[500],
15
+ DEFAULT: "#A3A3A3",
16
+ lighter: "#e0e6ed",
17
+ },
18
+ },
19
+ fontFamily: {
20
+ sans: ["AvantGarde", "sans-serif"],
21
+ serif: ["Lora", "serif"],
22
+ },
23
+ },
24
+ plugins: [],
25
+ } satisfies Config;
@@ -1,9 +1,9 @@
1
- import { defineConfig } from 'vite';
2
- import dts from 'vite-plugin-dts';
3
- import react from '@vitejs/plugin-react';
4
- import path from 'path';
5
- import tailwindcss from 'tailwindcss';
6
- import { viteStaticCopy } from 'vite-plugin-static-copy';
1
+ import { defineConfig } from "vite";
2
+ import dts from "vite-plugin-dts";
3
+ import react from "@vitejs/plugin-react";
4
+ import path from "path";
5
+ import tailwindcss from "tailwindcss";
6
+ import { viteStaticCopy } from "vite-plugin-static-copy";
7
7
 
8
8
  // https://vitejs.dev/config/
9
9
  export default defineConfig({
@@ -13,80 +13,80 @@ export default defineConfig({
13
13
  {
14
14
  src: path.resolve(
15
15
  __dirname,
16
- 'src/assets/fonts/AvantGarde/AvantGarde.woff2'
16
+ "src/assets/fonts/AvantGarde/AvantGarde.woff2",
17
17
  ),
18
- dest: 'assets/fonts/AvantGarde',
18
+ dest: "assets/fonts/AvantGarde",
19
19
  },
20
20
  {
21
21
  src: path.resolve(
22
22
  __dirname,
23
- 'src/assets/fonts/AvantGarde/AvantGardeMedium.woff2'
23
+ "src/assets/fonts/AvantGarde/AvantGardeMedium.woff2",
24
24
  ),
25
- dest: 'assets/fonts/AvantGarde',
25
+ dest: "assets/fonts/AvantGarde",
26
26
  },
27
27
  {
28
28
  src: path.resolve(
29
29
  __dirname,
30
- 'src/assets/fonts/ITC Avant Garde Gothic/ITC Avant Garde Gothic Medium.otf'
30
+ "src/assets/fonts/ITC Avant Garde Gothic/ITC Avant Garde Gothic Medium.otf",
31
31
  ),
32
- dest: 'assets/fonts/ITC Avant Garde Gothic',
32
+ dest: "assets/fonts/ITC Avant Garde Gothic",
33
33
  },
34
34
  {
35
35
  src: path.resolve(
36
36
  __dirname,
37
- 'src/assets/fonts/ITC Avant Garde Gothic/ITC Avant Garde Gothic.otf'
37
+ "src/assets/fonts/ITC Avant Garde Gothic/ITC Avant Garde Gothic.otf",
38
38
  ),
39
- dest: 'assets/fonts/ITC Avant Garde Gothic',
39
+ dest: "assets/fonts/ITC Avant Garde Gothic",
40
40
  },
41
41
  {
42
42
  src: path.resolve(
43
43
  __dirname,
44
- 'src/assets/fonts/Merriweather/Merriweather-Bold.ttf'
44
+ "src/assets/fonts/Merriweather/Merriweather-Bold.ttf",
45
45
  ),
46
- dest: 'assets/fonts/Merriweather',
46
+ dest: "assets/fonts/Merriweather",
47
47
  },
48
48
  {
49
49
  src: path.resolve(
50
50
  __dirname,
51
- 'src/assets/fonts/Merriweather/Merriweather-Regular.ttf'
51
+ "src/assets/fonts/Merriweather/Merriweather-Regular.ttf",
52
52
  ),
53
- dest: 'assets/fonts/Merriweather',
53
+ dest: "assets/fonts/Merriweather",
54
54
  },
55
55
  {
56
- src: path.resolve(__dirname, 'src/fonts.css'),
57
- dest: '.',
56
+ src: path.resolve(__dirname, "src/fonts.css"),
57
+ dest: ".",
58
58
  },
59
59
  {
60
- src: 'vite.config.ts',
61
- dest: 'vite-config',
60
+ src: "vite.config.ts",
61
+ dest: "vite-config",
62
62
  },
63
63
  {
64
- src: 'tailwind.config.js',
65
- dest: 'tailwind-config',
64
+ src: "tailwind.config.ts",
65
+ dest: "tailwind-config",
66
66
  },
67
67
  ],
68
68
  }),
69
69
  react(),
70
- dts({ tsconfigPath: './tsconfig.node.json', rollupTypes: true }),
70
+ dts({ tsconfigPath: "./tsconfig.node.json", rollupTypes: true }),
71
71
  ],
72
72
  build: {
73
73
  lib: {
74
74
  entry: {
75
- index: path.resolve(__dirname, 'src/components/index.ts'),
76
- constants: path.resolve(__dirname, 'src/constants/index.ts'),
77
- icons: path.resolve(__dirname, 'src/icons/index.ts'),
78
- utils: path.resolve(__dirname, 'src/utils/index.ts'),
75
+ index: path.resolve(__dirname, "src/components/index.ts"),
76
+ constants: path.resolve(__dirname, "src/constants/index.ts"),
77
+ icons: path.resolve(__dirname, "src/icons/index.ts"),
78
+ utils: path.resolve(__dirname, "src/utils/index.ts"),
79
79
  },
80
- name: 'PaoloJulian-DesignSystem',
80
+ name: "PaoloJulian-DesignSystem",
81
81
  fileName: (format) => `[name].${format}.js`,
82
82
  },
83
83
  rollupOptions: {
84
- external: ['react', 'react-dom', 'tailwindcss'],
84
+ external: ["react", "react-dom", "tailwindcss"],
85
85
  output: {
86
86
  globals: {
87
- react: 'React',
88
- 'react-dom': 'ReactDOM',
89
- tailwindcss: 'tailwindcss',
87
+ react: "React",
88
+ "react-dom": "ReactDOM",
89
+ tailwindcss: "tailwindcss",
90
90
  },
91
91
  },
92
92
  },
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@paolojulian.dev/design-system",
3
3
  "license": "MIT",
4
4
  "private": false,
5
- "version": "3.0.0",
5
+ "version": "3.0.1",
6
6
  "type": "module",
7
7
  "types": "dist/index.d.ts",
8
8
  "main": "dist/index.umd.js",
@@ -1,25 +0,0 @@
1
- import colors from 'tailwindcss/colors';
2
-
3
- /** @type {import('tailwindcss').Config} */
4
- export default {
5
- content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
6
- theme: {
7
- extend: {},
8
- colors: {
9
- black: '#0D0D0D',
10
- white: '#FCF5ED',
11
- primary: '#CE5A67',
12
- secondary: '#F4BF96',
13
- gray: {
14
- darker: colors.stone[500],
15
- DEFAULT: '#A3A3A3',
16
- lighter: '#e0e6ed',
17
- },
18
- },
19
- fontFamily: {
20
- sans: ['AvantGarde', 'sans-serif'],
21
- serif: ['Lora', 'serif'],
22
- },
23
- },
24
- plugins: [],
25
- };