Skip to content

Commit 758456b

Browse files
author
Andrew Welch
committed
Refactor to just 3 .pcss files
1 parent adcc82c commit 758456b

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

src/css/app-base.pcss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* This injects Tailwind's base styles, which is a combination of
3+
* Normalize.css and some additional base styles.
4+
*/
5+
@import 'tailwindcss/base';
6+
17
/**
28
* Here we add custom base styles, applied after the tailwind-base
39
* classes

src/css/app-components.pcss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* This injects any component classes registered by plugins.
3+
*
4+
*/
5+
@import 'tailwindcss/components';
6+
17
/**
28
* Here we add custom component classes; stuff we want loaded
39
* *before* the utilities so that the utilities can still

src/css/app-utilities.pcss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* This injects all of Tailwind's utility classes, generated based on your
3+
* config file.
4+
*
5+
*/
6+
@import 'tailwindcss/utilities';
7+
18
/**
29
* Include styles for individual pages
310
*

src/css/tailwind-base.pcss

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/css/tailwind-components.pcss

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/css/tailwind-utilities.pcss

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/js/app.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Import our CSS
2-
import '../css/tailwind-base.pcss';
32
import '../css/app-base.pcss';
4-
import '../css/tailwind-components.pcss';
53
import '../css/app-components.pcss';
6-
import '../css/tailwind-utilities.pcss';
74
import '../css/app-utilities.pcss';
85

96
import App from "../vue/App.vue";

0 commit comments

Comments
 (0)