Skip to content

Commit

Permalink
fix: use index.css to force the order of css imports
Browse files Browse the repository at this point in the history
  • Loading branch information
zumuta committed Dec 1, 2024
1 parent 2e72659 commit 4aced74
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 10 deletions.
3 changes: 3 additions & 0 deletions frontend/apps/auth/src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@import '@root/style.css';
@import '@kwai/ui/index.css';

@tailwind base;
@tailwind components;
@tailwind utilities;
3 changes: 1 addition & 2 deletions frontend/apps/auth/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { createApp } from 'vue';
// Create app
import App from './App.vue';
import './index.css';
import './style.css';
import '@root/index.css';

// Setup i18n
import { createI18n } from 'vue-i18n';
Expand Down
3 changes: 3 additions & 0 deletions frontend/apps/author/src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@import '@root/style.css';
@import '@kwai/ui/index.css';

@tailwind base;
@tailwind components;
@tailwind utilities;
1 change: 0 additions & 1 deletion frontend/apps/author/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { createApp } from 'vue';
import App from '@root/App.vue';
import '@root/index.css';
import '@root/style.css';

import { createRouter, createWebHistory } from 'vue-router';
import routes from '@root/routes';
Expand Down
3 changes: 3 additions & 0 deletions frontend/apps/club/src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@import './style.css';
@import '@kwai/ui/index.css';

@tailwind base;
@tailwind components;
@tailwind utilities;
3 changes: 1 addition & 2 deletions frontend/apps/club/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { createApp } from 'vue';
import App from './App.vue';
import './index.css';
import './style.css';
import '@root/index.css';

import { VueQueryPlugin } from '@tanstack/vue-query';
import { createRouter, createWebHistory } from 'vue-router';
Expand Down
3 changes: 3 additions & 0 deletions frontend/apps/coach/src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@import '@root/style.css';
@import '@kwai/ui/index.css';

@tailwind base;
@tailwind components;
@tailwind utilities;
1 change: 0 additions & 1 deletion frontend/apps/coach/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { createApp } from 'vue';
import App from '@root/App.vue';
import '@root/index.css';
import '@root/style.css';

import { createRouter, createWebHistory } from 'vue-router';
import routes from '@root/routes';
Expand Down
5 changes: 4 additions & 1 deletion frontend/apps/portal/src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@import '@root/style.css';
@import '@kwai/ui/index.css';

@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind utilities;
5 changes: 2 additions & 3 deletions frontend/apps/portal/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { createApp } from 'vue';

// Create app
import App from './App.vue';
import './index.css';
import './style.css';
import '@root/index.css';

import { init } from '@kwai/ui';
import { createRouter, createWebHistory } from 'vue-router';
Expand Down

0 comments on commit 4aced74

Please sign in to comment.