Skip to content

Commit

Permalink
#2328 Add TailwindStyles and TailwindStyleBuilder components (#2329)
Browse files Browse the repository at this point in the history
* #2328 Add TailwindStyles and TailwindStyleBuilder components

* #2328 remove tailwind script from AuthLayout
  • Loading branch information
TheHadiAhmadi authored Dec 6, 2024
1 parent c374fcd commit c3a723d
Show file tree
Hide file tree
Showing 40 changed files with 222 additions and 649 deletions.
1 change: 1 addition & 0 deletions src/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -407,3 +407,4 @@ FodyWeavers.xsd
FluentCMS/files
FluentCMS/LiteDb-log.db
FluentCMS/LiteDb.db
FluentCMS/wwwroot/tailwind
30 changes: 1 addition & 29 deletions src/FluentCMS/Templates/Blank/AdminLayout.head.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,4 @@
<link rel="mask-icon" href="/files/images/safari-pinned-tab.svg" color="#2d3250">

<script src="/files/js/app.head.js"></script>
<script src="/files/js/tailwind.cdn.js"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
primary: {
50: '#f4f8fd',
100: '#e8f1fb',
200: '#c6ddf4',
300: '#a3c8ed',
400: '#5e9fe0',
500: '#1976d2',
600: '#176abd',
700: '#13599e',
800: '#0f477e',
900: '#0c3a67',
on: '#f4f8fd',
dark: {
DEFAULT: '#a3c8ed',
on: '#0f477e',
}
},
},
},
}
}
</script>
<TailwindStyles fluentcms />
30 changes: 1 addition & 29 deletions src/FluentCMS/Templates/Blank/AuthLayout.head.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,4 @@
<link rel="icon" type="image/png" sizes="192x192" href="/files/images/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="16x16" href="/files/images/favicon-16x16.png">
<link rel="mask-icon" href="/files/images/safari-pinned-tab.svg" color="#2d3250">
<script src="/files/js/tailwind.cdn.js"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
primary: {
50: '#f4f8fd',
100: '#e8f1fb',
200: '#c6ddf4',
300: '#a3c8ed',
400: '#5e9fe0',
500: '#1976d2',
600: '#176abd',
700: '#13599e',
800: '#0f477e',
900: '#0c3a67',
on: '#f4f8fd',
dark: {
DEFAULT: '#a3c8ed',
on: '#0f477e',
}
},
},
},
}
}
</script>
<TailwindStyles fluentcms />
30 changes: 1 addition & 29 deletions src/FluentCMS/Templates/Blank/DefaultLayout.head.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,4 @@
<link rel="mask-icon" href="/files/images/safari-pinned-tab.svg" color="#2d3250">

<script src="/files/js/app.head.js"></script>
<script src="/files/js/tailwind.cdn.js"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
primary: {
50: '#f4f8fd',
100: '#e8f1fb',
200: '#c6ddf4',
300: '#a3c8ed',
400: '#5e9fe0',
500: '#1976d2',
600: '#176abd',
700: '#13599e',
800: '#0f477e',
900: '#0c3a67',
on: '#f4f8fd',
dark: {
DEFAULT: '#a3c8ed',
on: '#0f477e',
}
},
},
},
}
}
</script>
<TailwindStyles fluentcms />
30 changes: 1 addition & 29 deletions src/FluentCMS/Templates/Blank/EditLayout.head.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,4 @@
<link rel="mask-icon" href="/files/images/safari-pinned-tab.svg" color="#2d3250">

<script src="/files/js/app.head.js"></script>
<script src="/files/js/tailwind.cdn.js"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
primary: {
50: '#f4f8fd',
100: '#e8f1fb',
200: '#c6ddf4',
300: '#a3c8ed',
400: '#5e9fe0',
500: '#1976d2',
600: '#176abd',
700: '#13599e',
800: '#0f477e',
900: '#0c3a67',
on: '#f4f8fd',
dark: {
DEFAULT: '#a3c8ed',
on: '#0f477e',
}
},
},
},
}
}
</script>
<TailwindStyles fluentcms />
30 changes: 1 addition & 29 deletions src/FluentCMS/Templates/Blank/SingleLayout.head.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,4 @@
<link rel="mask-icon" href="/files/images/safari-pinned-tab.svg" color="#2d3250">

<script src="/files/js/app.head.js"></script>
<script src="/files/js/tailwind.cdn.js"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
primary: {
50: '#f4f8fd',
100: '#e8f1fb',
200: '#c6ddf4',
300: '#a3c8ed',
400: '#5e9fe0',
500: '#1976d2',
600: '#176abd',
700: '#13599e',
800: '#0f477e',
900: '#0c3a67',
on: '#f4f8fd',
dark: {
DEFAULT: '#a3c8ed',
on: '#0f477e',
}
},
},
},
}
}
</script>
<TailwindStyles fluentcms />
30 changes: 1 addition & 29 deletions src/FluentCMS/Templates/Default/AdminLayout.head.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,4 @@
<link rel="mask-icon" href="/files/images/safari-pinned-tab.svg" color="#2d3250">

<script src="/files/js/app.head.js"></script>
<script src="/files/js/tailwind.cdn.js"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
primary: {
50: '#f4f8fd',
100: '#e8f1fb',
200: '#c6ddf4',
300: '#a3c8ed',
400: '#5e9fe0',
500: '#1976d2',
600: '#176abd',
700: '#13599e',
800: '#0f477e',
900: '#0c3a67',
on: '#f4f8fd',
dark: {
DEFAULT: '#a3c8ed',
on: '#0f477e',
}
},
},
},
}
}
</script>
<TailwindStyles fluentcms />
30 changes: 1 addition & 29 deletions src/FluentCMS/Templates/Default/AuthLayout.head.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,4 @@
<link rel="icon" type="image/png" sizes="192x192" href="/files/images/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="16x16" href="/files/images/favicon-16x16.png">
<link rel="mask-icon" href="/files/images/safari-pinned-tab.svg" color="#2d3250">
<script src="/files/js/tailwind.cdn.js"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
primary: {
50: '#f4f8fd',
100: '#e8f1fb',
200: '#c6ddf4',
300: '#a3c8ed',
400: '#5e9fe0',
500: '#1976d2',
600: '#176abd',
700: '#13599e',
800: '#0f477e',
900: '#0c3a67',
on: '#f4f8fd',
dark: {
DEFAULT: '#a3c8ed',
on: '#0f477e',
}
},
},
},
}
}
</script>
<TailwindStyles fluentcms />
30 changes: 1 addition & 29 deletions src/FluentCMS/Templates/Default/DefaultLayout.head.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,4 @@
<link rel="mask-icon" href="/files/images/safari-pinned-tab.svg" color="#2d3250">

<script src="/files/js/app.head.js"></script>
<script src="/files/js/tailwind.cdn.js"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
primary: {
50: '#f4f8fd',
100: '#e8f1fb',
200: '#c6ddf4',
300: '#a3c8ed',
400: '#5e9fe0',
500: '#1976d2',
600: '#176abd',
700: '#13599e',
800: '#0f477e',
900: '#0c3a67',
on: '#f4f8fd',
dark: {
DEFAULT: '#a3c8ed',
on: '#0f477e',
}
},
},
},
}
}
</script>
<TailwindStyles fluentcms />
30 changes: 1 addition & 29 deletions src/FluentCMS/Templates/Default/EditLayout.head.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,4 @@
<link rel="mask-icon" href="/files/images/safari-pinned-tab.svg" color="#2d3250">

<script src="/files/js/app.head.js"></script>
<script src="/files/js/tailwind.cdn.js"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
primary: {
50: '#f4f8fd',
100: '#e8f1fb',
200: '#c6ddf4',
300: '#a3c8ed',
400: '#5e9fe0',
500: '#1976d2',
600: '#176abd',
700: '#13599e',
800: '#0f477e',
900: '#0c3a67',
on: '#f4f8fd',
dark: {
DEFAULT: '#a3c8ed',
on: '#0f477e',
}
},
},
},
}
}
</script>
<TailwindStyles fluentcms />
61 changes: 0 additions & 61 deletions src/FluentCMS/Templates/Default/Files/js/tailwind.cdn.js

This file was deleted.

30 changes: 1 addition & 29 deletions src/FluentCMS/Templates/Default/SingleLayout.head.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,4 @@
<link rel="mask-icon" href="/files/images/safari-pinned-tab.svg" color="#2d3250">

<script src="/files/js/app.head.js"></script>
<script src="/files/js/tailwind.cdn.js"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
primary: {
50: '#f4f8fd',
100: '#e8f1fb',
200: '#c6ddf4',
300: '#a3c8ed',
400: '#5e9fe0',
500: '#1976d2',
600: '#176abd',
700: '#13599e',
800: '#0f477e',
900: '#0c3a67',
on: '#f4f8fd',
dark: {
DEFAULT: '#a3c8ed',
on: '#0f477e',
}
},
},
},
}
}
</script>
<TailwindStyles fluentcms />
30 changes: 1 addition & 29 deletions src/FluentCMS/Templates/Portfolio/AdminLayout.head.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,4 @@
<link rel="mask-icon" href="/files/images/safari-pinned-tab.svg" color="#2d3250">

<script src="/files/js/app.head.js"></script>
<script src="/files/js/tailwind.cdn.js"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
primary: {
50: '#f4f8fd',
100: '#e8f1fb',
200: '#c6ddf4',
300: '#a3c8ed',
400: '#5e9fe0',
500: '#1976d2',
600: '#176abd',
700: '#13599e',
800: '#0f477e',
900: '#0c3a67',
on: '#f4f8fd',
dark: {
DEFAULT: '#a3c8ed',
on: '#0f477e',
}
},
},
},
}
}
</script>
<TailwindStyles fluentcms />
Loading

0 comments on commit c3a723d

Please sign in to comment.