├── BlazorTailwindWebAssembly ├── BlazorTailwindWebAssembly │ ├── Pages │ │ ├── Index.razor.css │ │ ├── Index.razor │ │ ├── Counter.razor.css │ │ ├── Counter.razor │ │ ├── FetchData.razor.css │ │ └── FetchData.razor │ ├── wwwroot │ │ ├── favicon.ico │ │ ├── icon-192.png │ │ ├── css │ │ │ ├── open-iconic │ │ │ │ ├── font │ │ │ │ │ ├── fonts │ │ │ │ │ │ ├── open-iconic.eot │ │ │ │ │ │ ├── open-iconic.otf │ │ │ │ │ │ ├── open-iconic.ttf │ │ │ │ │ │ ├── open-iconic.woff │ │ │ │ │ │ └── open-iconic.svg │ │ │ │ │ └── css │ │ │ │ │ │ └── open-iconic-bootstrap.min.css │ │ │ │ ├── ICON-LICENSE │ │ │ │ ├── README.md │ │ │ │ └── FONT-LICENSE │ │ │ └── app.css │ │ ├── sample-data │ │ │ └── weather.json │ │ └── index.html │ ├── Styles │ │ └── app.css │ ├── _Imports.razor │ ├── Program.cs │ ├── App.razor │ ├── tailwind.config.js │ ├── Shared │ │ ├── MainLayout.razor.css │ │ ├── NavMenu.razor │ │ ├── SurveyPrompt.razor │ │ ├── NavMenu.razor.css │ │ └── MainLayout.razor │ ├── Properties │ │ └── launchSettings.json │ └── BlazorTailwindWebAssembly.csproj └── BlazorTailwindWebAssembly.sln ├── .gitignore └── README.md /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/Pages/Index.razor.css: -------------------------------------------------------------------------------- 1 | h1 2 | { 3 | @apply text-4xl font-bold mb-4 mt-[111px]; 4 | } 5 | -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/Pages/Index.razor: -------------------------------------------------------------------------------- 1 | @page "/" 2 | 3 | Index 4 | 5 |

Hello, world!

6 | 7 | Welcome to your new app. -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngstromJimmy/BlazorTailwindTest/main/BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/wwwroot/favicon.ico -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/wwwroot/icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngstromJimmy/BlazorTailwindTest/main/BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/wwwroot/icon-192.png -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/Styles/app.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | 5 | .tableheader { 6 | @apply p-2 border-b-4 border-purple-600 text-left uppercase text-sm tracking-wider; 7 | } 8 | -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/wwwroot/css/open-iconic/font/fonts/open-iconic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngstromJimmy/BlazorTailwindTest/main/BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/wwwroot/css/open-iconic/font/fonts/open-iconic.eot -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/wwwroot/css/open-iconic/font/fonts/open-iconic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngstromJimmy/BlazorTailwindTest/main/BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/wwwroot/css/open-iconic/font/fonts/open-iconic.otf -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngstromJimmy/BlazorTailwindTest/main/BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/wwwroot/css/open-iconic/font/fonts/open-iconic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngstromJimmy/BlazorTailwindTest/main/BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/wwwroot/css/open-iconic/font/fonts/open-iconic.woff -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/Pages/Counter.razor.css: -------------------------------------------------------------------------------- 1 | h1 { 2 | @apply text-4xl font-bold mb-4; 3 | } 4 | 5 | button { 6 | @apply mt-4 bg-gradient-to-br from-green-600 to-green-500 hover:from-green-500 hover:to-green-600 text-white p-2 rounded border border-green-600 7 | } -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/Pages/Counter.razor: -------------------------------------------------------------------------------- 1 | @page "/counter" 2 | 3 | Counter 4 | 5 |

Counter

6 | 7 |

Current count: @currentCount

8 | 9 | 10 | 11 | 12 | @code { 13 | 14 | private int currentCount = 0; 15 | 16 | private void IncrementCount() 17 | { 18 | currentCount++; 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/Pages/FetchData.razor.css: -------------------------------------------------------------------------------- 1 | h1 { 2 | @apply text-4xl font-bold mb-4; 3 | } 4 | 5 | table { 6 | @apply table-auto w-3/5 mt-4 mx-auto; 7 | } 8 | 9 | th { 10 | @apply p-2 border-b-4 border-purple-600 text-left uppercase text-sm tracking-wider; 11 | } 12 | 13 | tr { 14 | @apply hover:bg-green-100 odd:bg-purple-50; 15 | } 16 | 17 | td { 18 | @apply p-2; 19 | } 20 | 21 | -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using System.Net.Http.Json 3 | @using Microsoft.AspNetCore.Components.Forms 4 | @using Microsoft.AspNetCore.Components.Routing 5 | @using Microsoft.AspNetCore.Components.Web 6 | @using Microsoft.AspNetCore.Components.Web.Virtualization 7 | @using Microsoft.AspNetCore.Components.WebAssembly.Http 8 | @using Microsoft.JSInterop 9 | @using BlazorTailwindWebAssembly 10 | @using BlazorTailwindWebAssembly.Shared 11 | -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/Program.cs: -------------------------------------------------------------------------------- 1 | using BlazorTailwindWebAssembly; 2 | using Microsoft.AspNetCore.Components.Web; 3 | using Microsoft.AspNetCore.Components.WebAssembly.Hosting; 4 | 5 | var builder = WebAssemblyHostBuilder.CreateDefault(args); 6 | builder.RootComponents.Add("#app"); 7 | builder.RootComponents.Add("head::after"); 8 | 9 | builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); 10 | 11 | await builder.Build().RunAsync(); 12 | -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/App.razor: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Not found 8 | 9 |

Sorry, there's nothing at this address.

10 |
11 |
12 |
13 | -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/tailwind.config.js: -------------------------------------------------------------------------------- 1 | const colors = require('tailwindcss/colors') 2 | 3 | module.exports = { 4 | mode: 'jit', 5 | purge: [ 6 | './**/*.html', 7 | './**/*.cshtml', 8 | './**/*.razor' 9 | ], 10 | darkMode: 'media', 11 | theme: { 12 | extend: { 13 | colors: { 14 | cyan: colors.cyan 15 | } 16 | }, 17 | }, 18 | variants: { 19 | textShadow: ['responsive', 'hover', 'focus'], 20 | }, 21 | plugins: [ 22 | ] 23 | } -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/wwwroot/sample-data/weather.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "date": "2018-05-06", 4 | "temperatureC": 1, 5 | "summary": "Freezing" 6 | }, 7 | { 8 | "date": "2018-05-07", 9 | "temperatureC": 14, 10 | "summary": "Bracing" 11 | }, 12 | { 13 | "date": "2018-05-08", 14 | "temperatureC": -13, 15 | "summary": "Freezing" 16 | }, 17 | { 18 | "date": "2018-05-09", 19 | "temperatureC": -16, 20 | "summary": "Balmy" 21 | }, 22 | { 23 | "date": "2018-05-10", 24 | "temperatureC": -2, 25 | "summary": "Chilly" 26 | } 27 | ] 28 | -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/Shared/MainLayout.razor.css: -------------------------------------------------------------------------------- 1 | main { 2 | @apply px-8 container mx-auto; 3 | } 4 | 5 | 6 | a { 7 | @apply uppercase mt-6 ml-8 text-white pb-2 border-b-4 mr-6 border-purple-700 hover:border-green-400; 8 | } 9 | 10 | header { 11 | @apply relative mb-16; 12 | } 13 | 14 | nav { 15 | @apply flex justify-between absolute inset-x-0 top-0; 16 | } 17 | 18 | 19 | .style1 { 20 | @apply text-white font-bold inset-x-0 text-center absolute top-40 text-5xl; /*text-shadow-xl*/ 21 | } 22 | 23 | .style2 { 24 | @apply text-cyan-500 bg-white p-2 rounded; /*text-shadow-none*/ 25 | } -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/Shared/NavMenu.razor: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/Shared/SurveyPrompt.razor: -------------------------------------------------------------------------------- 1 |
2 | 12 |
13 | 14 | @code { 15 | // Demonstrates how a parent component can supply parameters 16 | [Parameter] 17 | public string Title { get; set; } = "Survey Prompt"; 18 | 19 | } -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/wwwroot/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Blazor+Tailwind 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
15 | 16 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:60144", 7 | "sslPort": 44390 8 | } 9 | }, 10 | "profiles": { 11 | "BlazorTailwindWebAssembly": { 12 | "commandName": "Project", 13 | "dotnetRunMessages": true, 14 | "launchBrowser": true, 15 | "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", 16 | "applicationUrl": "https://localhost:7274;http://localhost:5274", 17 | "environmentVariables": { 18 | "ASPNETCORE_ENVIRONMENT": "Development" 19 | } 20 | }, 21 | "IIS Express": { 22 | "commandName": "IISExpress", 23 | "launchBrowser": true, 24 | "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", 25 | "environmentVariables": { 26 | "ASPNETCORE_ENVIRONMENT": "Development" 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/wwwroot/css/open-iconic/ICON-LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Waybury 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.3.32519.111 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazorTailwindWebAssembly", "BlazorTailwindWebAssembly\BlazorTailwindWebAssembly.csproj", "{EDF58495-F123-4D32-A738-708AC5F7083D}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {EDF58495-F123-4D32-A738-708AC5F7083D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {EDF58495-F123-4D32-A738-708AC5F7083D}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {EDF58495-F123-4D32-A738-708AC5F7083D}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {EDF58495-F123-4D32-A738-708AC5F7083D}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {62EB9C47-2A6A-4D46-813F-6E0919C77B6B} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/Shared/NavMenu.razor.css: -------------------------------------------------------------------------------- 1 | /*.navbar-toggler { 2 | background-color: rgba(255, 255, 255, 0.1); 3 | } 4 | 5 | .top-row { 6 | height: 3.5rem; 7 | background-color: rgba(0,0,0,0.4); 8 | } 9 | 10 | .navbar-brand { 11 | font-size: 1.1rem; 12 | } 13 | 14 | .oi { 15 | width: 2rem; 16 | font-size: 1.1rem; 17 | vertical-align: text-top; 18 | top: -2px; 19 | } 20 | 21 | .nav-item { 22 | font-size: 0.9rem; 23 | padding-bottom: 0.5rem; 24 | } 25 | 26 | .nav-item:first-of-type { 27 | padding-top: 1rem; 28 | } 29 | 30 | .nav-item:last-of-type { 31 | padding-bottom: 1rem; 32 | } 33 | 34 | .nav-item ::deep a { 35 | color: #d7d7d7; 36 | border-radius: 4px; 37 | height: 3rem; 38 | display: flex; 39 | align-items: center; 40 | line-height: 3rem; 41 | } 42 | 43 | .nav-item ::deep a.active { 44 | background-color: rgba(255,255,255,0.25); 45 | color: white; 46 | } 47 | 48 | .nav-item ::deep a:hover { 49 | background-color: rgba(255,255,255,0.1); 50 | color: white; 51 | } 52 | 53 | @media (min-width: 641px) { 54 | .navbar-toggler { 55 | display: none; 56 | } 57 | 58 | .collapse {*/ 59 | /* Never collapse the sidebar for wide screens */ 60 | /*display: block; 61 | } 62 | }*/ 63 | -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/Pages/FetchData.razor: -------------------------------------------------------------------------------- 1 | @page "/fetchdata" 2 | @inject HttpClient Http 3 | 4 |

Weather forecast

5 | 6 |

This component demonstrates fetching data from the server.

7 | 8 | @if (forecasts == null) 9 | { 10 |

11 | Loading... 12 |

13 | } 14 | else 15 | { 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | @foreach (WeatherForecast forecast in forecasts) 27 | { 28 | 29 | 30 | 31 | 32 | 33 | 34 | } 35 | 36 |
DateTemp. (C)Temp. (F)Summary
@forecast.Date.ToShortDateString()@forecast.TemperatureC@forecast.TemperatureF@forecast.Summary
37 | } 38 | 39 | @code { 40 | private WeatherForecast[] forecasts; 41 | 42 | protected override async Task OnInitializedAsync() 43 | { 44 | forecasts = await Http.GetFromJsonAsync("sample-data/weather.json"); 45 | } 46 | 47 | public class WeatherForecast 48 | { 49 | public DateTime Date { get; set; } 50 | 51 | public int TemperatureC { get; set; } 52 | 53 | public string Summary { get; set; } 54 | 55 | public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); 56 | } 57 | } -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/Shared/MainLayout.razor: -------------------------------------------------------------------------------- 1 | @inherits LayoutComponentBase 2 | 3 | BlazorApp 4 | 5 |
6 | 10 | 11 | Blazor + Tailwind 12 | 13 | 14 |
15 | 16 |
17 | @Body 18 |
-------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/BlazorTailwindWebAssembly.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net6.0 5 | enable 6 | enable 7 | 3.1.8 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | tailwindcss-windows-x64.exe 21 | tailwindcss-linux-x64 22 | tailwindcss-macos-x64 23 | $([System.IO.Path]::Combine($(MSBuildThisFileDirectory), ".tailwind")) 24 | tailwindcss$([System.IO.Path]::GetExtension($(TailwindDownloadName))) 25 | $([System.IO.Path]::Combine($(TailwindExeDir), $(TailwindExeName))) 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | true 58 | PreserveNewest 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/wwwroot/css/open-iconic/README.md: -------------------------------------------------------------------------------- 1 | [Open Iconic v1.1.1](http://useiconic.com/open) 2 | =========== 3 | 4 | ### Open Iconic is the open source sibling of [Iconic](http://useiconic.com). It is a hyper-legible collection of 223 icons with a tiny footprint—ready to use with Bootstrap and Foundation. [View the collection](http://useiconic.com/open#icons) 5 | 6 | 7 | 8 | ## What's in Open Iconic? 9 | 10 | * 223 icons designed to be legible down to 8 pixels 11 | * Super-light SVG files - 61.8 for the entire set 12 | * SVG sprite—the modern replacement for icon fonts 13 | * Webfont (EOT, OTF, SVG, TTF, WOFF), PNG and WebP formats 14 | * Webfont stylesheets (including versions for Bootstrap and Foundation) in CSS, LESS, SCSS and Stylus formats 15 | * PNG and WebP raster images in 8px, 16px, 24px, 32px, 48px and 64px. 16 | 17 | 18 | ## Getting Started 19 | 20 | #### For code samples and everything else you need to get started with Open Iconic, check out our [Icons](http://useiconic.com/open#icons) and [Reference](http://useiconic.com/open#reference) sections. 21 | 22 | ### General Usage 23 | 24 | #### Using Open Iconic's SVGs 25 | 26 | We like SVGs and we think they're the way to display icons on the web. Since Open Iconic are just basic SVGs, we suggest you display them like you would any other image (don't forget the `alt` attribute). 27 | 28 | ``` 29 | icon name 30 | ``` 31 | 32 | #### Using Open Iconic's SVG Sprite 33 | 34 | Open Iconic also comes in a SVG sprite which allows you to display all the icons in the set with a single request. It's like an icon font, without being a hack. 35 | 36 | Adding an icon from an SVG sprite is a little different than what you're used to, but it's still a piece of cake. *Tip: To make your icons easily style able, we suggest adding a general class to the* `` *tag and a unique class name for each different icon in the* `` *tag.* 37 | 38 | ``` 39 | 40 | 41 | 42 | ``` 43 | 44 | Sizing icons only needs basic CSS. All the icons are in a square format, so just set the `` tag with equal width and height dimensions. 45 | 46 | ``` 47 | .icon { 48 | width: 16px; 49 | height: 16px; 50 | } 51 | ``` 52 | 53 | Coloring icons is even easier. All you need to do is set the `fill` rule on the `` tag. 54 | 55 | ``` 56 | .icon-account-login { 57 | fill: #f00; 58 | } 59 | ``` 60 | 61 | To learn more about SVG Sprites, read [Chris Coyier's guide](http://css-tricks.com/svg-sprites-use-better-icon-fonts/). 62 | 63 | #### Using Open Iconic's Icon Font... 64 | 65 | 66 | ##### …with Bootstrap 67 | 68 | You can find our Bootstrap stylesheets in `font/css/open-iconic-bootstrap.{css, less, scss, styl}` 69 | 70 | 71 | ``` 72 | 73 | ``` 74 | 75 | 76 | ``` 77 | 78 | ``` 79 | 80 | ##### …with Foundation 81 | 82 | You can find our Foundation stylesheets in `font/css/open-iconic-foundation.{css, less, scss, styl}` 83 | 84 | ``` 85 | 86 | ``` 87 | 88 | 89 | ``` 90 | 91 | ``` 92 | 93 | ##### …on its own 94 | 95 | You can find our default stylesheets in `font/css/open-iconic.{css, less, scss, styl}` 96 | 97 | ``` 98 | 99 | ``` 100 | 101 | ``` 102 | 103 | ``` 104 | 105 | 106 | ## License 107 | 108 | ### Icons 109 | 110 | All code (including SVG markup) is under the [MIT License](http://opensource.org/licenses/MIT). 111 | 112 | ### Fonts 113 | 114 | All fonts are under the [SIL Licensed](http://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web). 115 | -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/wwwroot/css/open-iconic/FONT-LICENSE: -------------------------------------------------------------------------------- 1 | SIL OPEN FONT LICENSE Version 1.1 2 | 3 | Copyright (c) 2014 Waybury 4 | 5 | PREAMBLE 6 | The goals of the Open Font License (OFL) are to stimulate worldwide 7 | development of collaborative font projects, to support the font creation 8 | efforts of academic and linguistic communities, and to provide a free and 9 | open framework in which fonts may be shared and improved in partnership 10 | with others. 11 | 12 | The OFL allows the licensed fonts to be used, studied, modified and 13 | redistributed freely as long as they are not sold by themselves. The 14 | fonts, including any derivative works, can be bundled, embedded, 15 | redistributed and/or sold with any software provided that any reserved 16 | names are not used by derivative works. The fonts and derivatives, 17 | however, cannot be released under any other type of license. The 18 | requirement for fonts to remain under this license does not apply 19 | to any document created using the fonts or their derivatives. 20 | 21 | DEFINITIONS 22 | "Font Software" refers to the set of files released by the Copyright 23 | Holder(s) under this license and clearly marked as such. This may 24 | include source files, build scripts and documentation. 25 | 26 | "Reserved Font Name" refers to any names specified as such after the 27 | copyright statement(s). 28 | 29 | "Original Version" refers to the collection of Font Software components as 30 | distributed by the Copyright Holder(s). 31 | 32 | "Modified Version" refers to any derivative made by adding to, deleting, 33 | or substituting -- in part or in whole -- any of the components of the 34 | Original Version, by changing formats or by porting the Font Software to a 35 | new environment. 36 | 37 | "Author" refers to any designer, engineer, programmer, technical 38 | writer or other person who contributed to the Font Software. 39 | 40 | PERMISSION & CONDITIONS 41 | Permission is hereby granted, free of charge, to any person obtaining 42 | a copy of the Font Software, to use, study, copy, merge, embed, modify, 43 | redistribute, and sell modified and unmodified copies of the Font 44 | Software, subject to the following conditions: 45 | 46 | 1) Neither the Font Software nor any of its individual components, 47 | in Original or Modified Versions, may be sold by itself. 48 | 49 | 2) Original or Modified Versions of the Font Software may be bundled, 50 | redistributed and/or sold with any software, provided that each copy 51 | contains the above copyright notice and this license. These can be 52 | included either as stand-alone text files, human-readable headers or 53 | in the appropriate machine-readable metadata fields within text or 54 | binary files as long as those fields can be easily viewed by the user. 55 | 56 | 3) No Modified Version of the Font Software may use the Reserved Font 57 | Name(s) unless explicit written permission is granted by the corresponding 58 | Copyright Holder. This restriction only applies to the primary font name as 59 | presented to the users. 60 | 61 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font 62 | Software shall not be used to promote, endorse or advertise any 63 | Modified Version, except to acknowledge the contribution(s) of the 64 | Copyright Holder(s) and the Author(s) or with their explicit written 65 | permission. 66 | 67 | 5) The Font Software, modified or unmodified, in part or in whole, 68 | must be distributed entirely under this license, and must not be 69 | distributed under any other license. The requirement for fonts to 70 | remain under this license does not apply to any document created 71 | using the Font Software. 72 | 73 | TERMINATION 74 | This license becomes null and void if any of the above conditions are 75 | not met. 76 | 77 | DISCLAIMER 78 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 79 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF 80 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 81 | OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE 82 | COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 83 | INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL 84 | DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 85 | FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM 86 | OTHER DEALINGS IN THE FONT SOFTWARE. 87 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Aa][Rr][Mm]/ 27 | [Aa][Rr][Mm]64/ 28 | bld/ 29 | [Bb]in/ 30 | [Oo]bj/ 31 | [Ll]og/ 32 | [Ll]ogs/ 33 | 34 | # Visual Studio 2015/2017 cache/options directory 35 | .vs/ 36 | # Uncomment if you have tasks that create the project's static files in wwwroot 37 | #wwwroot/ 38 | 39 | # Visual Studio 2017 auto generated files 40 | Generated\ Files/ 41 | 42 | # MSTest test Results 43 | [Tt]est[Rr]esult*/ 44 | [Bb]uild[Ll]og.* 45 | 46 | # NUnit 47 | *.VisualState.xml 48 | TestResult.xml 49 | nunit-*.xml 50 | 51 | # Build Results of an ATL Project 52 | [Dd]ebugPS/ 53 | [Rr]eleasePS/ 54 | dlldata.c 55 | 56 | # Benchmark Results 57 | BenchmarkDotNet.Artifacts/ 58 | 59 | # .NET Core 60 | project.lock.json 61 | project.fragment.lock.json 62 | artifacts/ 63 | 64 | # StyleCop 65 | StyleCopReport.xml 66 | 67 | # Files built by Visual Studio 68 | *_i.c 69 | *_p.c 70 | *_h.h 71 | *.ilk 72 | *.meta 73 | *.obj 74 | *.iobj 75 | *.pch 76 | *.pdb 77 | *.ipdb 78 | *.pgc 79 | *.pgd 80 | *.rsp 81 | *.sbr 82 | *.tlb 83 | *.tli 84 | *.tlh 85 | *.tmp 86 | *.tmp_proj 87 | *_wpftmp.csproj 88 | *.log 89 | *.vspscc 90 | *.vssscc 91 | .builds 92 | *.pidb 93 | *.svclog 94 | *.scc 95 | 96 | # Chutzpah Test files 97 | _Chutzpah* 98 | 99 | # Visual C++ cache files 100 | ipch/ 101 | *.aps 102 | *.ncb 103 | *.opendb 104 | *.opensdf 105 | *.sdf 106 | *.cachefile 107 | *.VC.db 108 | *.VC.VC.opendb 109 | 110 | # Visual Studio profiler 111 | *.psess 112 | *.vsp 113 | *.vspx 114 | *.sap 115 | 116 | # Visual Studio Trace Files 117 | *.e2e 118 | 119 | # TFS 2012 Local Workspace 120 | $tf/ 121 | 122 | # Guidance Automation Toolkit 123 | *.gpState 124 | 125 | # ReSharper is a .NET coding add-in 126 | _ReSharper*/ 127 | *.[Rr]e[Ss]harper 128 | *.DotSettings.user 129 | 130 | # TeamCity is a build add-in 131 | _TeamCity* 132 | 133 | # DotCover is a Code Coverage Tool 134 | *.dotCover 135 | 136 | # AxoCover is a Code Coverage Tool 137 | .axoCover/* 138 | !.axoCover/settings.json 139 | 140 | # Visual Studio code coverage results 141 | *.coverage 142 | *.coveragexml 143 | 144 | # NCrunch 145 | _NCrunch_* 146 | .*crunch*.local.xml 147 | nCrunchTemp_* 148 | 149 | # MightyMoose 150 | *.mm.* 151 | AutoTest.Net/ 152 | 153 | # Web workbench (sass) 154 | .sass-cache/ 155 | 156 | # Installshield output folder 157 | [Ee]xpress/ 158 | 159 | # DocProject is a documentation generator add-in 160 | DocProject/buildhelp/ 161 | DocProject/Help/*.HxT 162 | DocProject/Help/*.HxC 163 | DocProject/Help/*.hhc 164 | DocProject/Help/*.hhk 165 | DocProject/Help/*.hhp 166 | DocProject/Help/Html2 167 | DocProject/Help/html 168 | 169 | # Click-Once directory 170 | publish/ 171 | 172 | # Publish Web Output 173 | *.[Pp]ublish.xml 174 | *.azurePubxml 175 | # Note: Comment the next line if you want to checkin your web deploy settings, 176 | # but database connection strings (with potential passwords) will be unencrypted 177 | *.pubxml 178 | *.publishproj 179 | 180 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 181 | # checkin your Azure Web App publish settings, but sensitive information contained 182 | # in these scripts will be unencrypted 183 | PublishScripts/ 184 | 185 | # NuGet Packages 186 | *.nupkg 187 | # NuGet Symbol Packages 188 | *.snupkg 189 | # The packages folder can be ignored because of Package Restore 190 | **/[Pp]ackages/* 191 | # except build/, which is used as an MSBuild target. 192 | !**/[Pp]ackages/build/ 193 | # Uncomment if necessary however generally it will be regenerated when needed 194 | #!**/[Pp]ackages/repositories.config 195 | # NuGet v3's project.json files produces more ignorable files 196 | *.nuget.props 197 | *.nuget.targets 198 | 199 | # Microsoft Azure Build Output 200 | csx/ 201 | *.build.csdef 202 | 203 | # Microsoft Azure Emulator 204 | ecf/ 205 | rcf/ 206 | 207 | # Windows Store app package directories and files 208 | AppPackages/ 209 | BundleArtifacts/ 210 | Package.StoreAssociation.xml 211 | _pkginfo.txt 212 | *.appx 213 | *.appxbundle 214 | *.appxupload 215 | 216 | # Visual Studio cache files 217 | # files ending in .cache can be ignored 218 | *.[Cc]ache 219 | # but keep track of directories ending in .cache 220 | !?*.[Cc]ache/ 221 | 222 | # Others 223 | ClientBin/ 224 | ~$* 225 | *~ 226 | *.dbmdl 227 | *.dbproj.schemaview 228 | *.jfm 229 | *.pfx 230 | *.publishsettings 231 | orleans.codegen.cs 232 | 233 | # Including strong name files can present a security risk 234 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 235 | #*.snk 236 | 237 | # Since there are multiple workflows, uncomment next line to ignore bower_components 238 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 239 | #bower_components/ 240 | 241 | # RIA/Silverlight projects 242 | Generated_Code/ 243 | 244 | # Backup & report files from converting an old project file 245 | # to a newer Visual Studio version. Backup files are not needed, 246 | # because we have git ;-) 247 | _UpgradeReport_Files/ 248 | Backup*/ 249 | UpgradeLog*.XML 250 | UpgradeLog*.htm 251 | ServiceFabricBackup/ 252 | *.rptproj.bak 253 | 254 | # SQL Server files 255 | *.mdf 256 | *.ldf 257 | *.ndf 258 | 259 | # Business Intelligence projects 260 | *.rdl.data 261 | *.bim.layout 262 | *.bim_*.settings 263 | *.rptproj.rsuser 264 | *- [Bb]ackup.rdl 265 | *- [Bb]ackup ([0-9]).rdl 266 | *- [Bb]ackup ([0-9][0-9]).rdl 267 | 268 | # Microsoft Fakes 269 | FakesAssemblies/ 270 | 271 | # GhostDoc plugin setting file 272 | *.GhostDoc.xml 273 | 274 | # Node.js Tools for Visual Studio 275 | .ntvs_analysis.dat 276 | node_modules/ 277 | 278 | # Visual Studio 6 build log 279 | *.plg 280 | 281 | # Visual Studio 6 workspace options file 282 | *.opt 283 | 284 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 285 | *.vbw 286 | 287 | # Visual Studio LightSwitch build output 288 | **/*.HTMLClient/GeneratedArtifacts 289 | **/*.DesktopClient/GeneratedArtifacts 290 | **/*.DesktopClient/ModelManifest.xml 291 | **/*.Server/GeneratedArtifacts 292 | **/*.Server/ModelManifest.xml 293 | _Pvt_Extensions 294 | 295 | # Paket dependency manager 296 | .paket/paket.exe 297 | paket-files/ 298 | 299 | # FAKE - F# Make 300 | .fake/ 301 | 302 | # CodeRush personal settings 303 | .cr/personal 304 | 305 | # Python Tools for Visual Studio (PTVS) 306 | __pycache__/ 307 | *.pyc 308 | 309 | # Cake - Uncomment if you are using it 310 | # tools/** 311 | # !tools/packages.config 312 | 313 | # Tabs Studio 314 | *.tss 315 | 316 | # Telerik's JustMock configuration file 317 | *.jmconfig 318 | 319 | # BizTalk build output 320 | *.btp.cs 321 | *.btm.cs 322 | *.odx.cs 323 | *.xsd.cs 324 | 325 | # OpenCover UI analysis results 326 | OpenCover/ 327 | 328 | # Azure Stream Analytics local run output 329 | ASALocalRun/ 330 | 331 | # MSBuild Binary and Structured Log 332 | *.binlog 333 | 334 | # NVidia Nsight GPU debugger configuration file 335 | *.nvuser 336 | 337 | # MFractors (Xamarin productivity tool) working folder 338 | .mfractor/ 339 | 340 | # Local History for Visual Studio 341 | .localhistory/ 342 | 343 | # BeatPulse healthcheck temp database 344 | healthchecksdb 345 | 346 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 347 | MigrationBackup/ 348 | 349 | # Ionide (cross platform F# VS Code tools) working folder 350 | .ionide/ 351 | /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/.tailwind 352 | -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/wwwroot/css/open-iconic/font/css/open-iconic-bootstrap.min.css: -------------------------------------------------------------------------------- 1 | @font-face{font-family:Icons;src:url(../fonts/open-iconic.eot);src:url(../fonts/open-iconic.eot?#iconic-sm) format('embedded-opentype'),url(../fonts/open-iconic.woff) format('woff'),url(../fonts/open-iconic.ttf) format('truetype'),url(../fonts/open-iconic.otf) format('opentype'),url(../fonts/open-iconic.svg#iconic-sm) format('svg');font-weight:400;font-style:normal}.oi{position:relative;top:1px;display:inline-block;speak:none;font-family:Icons;font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.oi:empty:before{width:1em;text-align:center;box-sizing:content-box}.oi.oi-align-center:before{text-align:center}.oi.oi-align-left:before{text-align:left}.oi.oi-align-right:before{text-align:right}.oi.oi-flip-horizontal:before{-webkit-transform:scale(-1,1);-ms-transform:scale(-1,1);transform:scale(-1,1)}.oi.oi-flip-vertical:before{-webkit-transform:scale(1,-1);-ms-transform:scale(-1,1);transform:scale(1,-1)}.oi.oi-flip-horizontal-vertical:before{-webkit-transform:scale(-1,-1);-ms-transform:scale(-1,1);transform:scale(-1,-1)}.oi-account-login:before{content:'\e000'}.oi-account-logout:before{content:'\e001'}.oi-action-redo:before{content:'\e002'}.oi-action-undo:before{content:'\e003'}.oi-align-center:before{content:'\e004'}.oi-align-left:before{content:'\e005'}.oi-align-right:before{content:'\e006'}.oi-aperture:before{content:'\e007'}.oi-arrow-bottom:before{content:'\e008'}.oi-arrow-circle-bottom:before{content:'\e009'}.oi-arrow-circle-left:before{content:'\e00a'}.oi-arrow-circle-right:before{content:'\e00b'}.oi-arrow-circle-top:before{content:'\e00c'}.oi-arrow-left:before{content:'\e00d'}.oi-arrow-right:before{content:'\e00e'}.oi-arrow-thick-bottom:before{content:'\e00f'}.oi-arrow-thick-left:before{content:'\e010'}.oi-arrow-thick-right:before{content:'\e011'}.oi-arrow-thick-top:before{content:'\e012'}.oi-arrow-top:before{content:'\e013'}.oi-audio-spectrum:before{content:'\e014'}.oi-audio:before{content:'\e015'}.oi-badge:before{content:'\e016'}.oi-ban:before{content:'\e017'}.oi-bar-chart:before{content:'\e018'}.oi-basket:before{content:'\e019'}.oi-battery-empty:before{content:'\e01a'}.oi-battery-full:before{content:'\e01b'}.oi-beaker:before{content:'\e01c'}.oi-bell:before{content:'\e01d'}.oi-bluetooth:before{content:'\e01e'}.oi-bold:before{content:'\e01f'}.oi-bolt:before{content:'\e020'}.oi-book:before{content:'\e021'}.oi-bookmark:before{content:'\e022'}.oi-box:before{content:'\e023'}.oi-briefcase:before{content:'\e024'}.oi-british-pound:before{content:'\e025'}.oi-browser:before{content:'\e026'}.oi-brush:before{content:'\e027'}.oi-bug:before{content:'\e028'}.oi-bullhorn:before{content:'\e029'}.oi-calculator:before{content:'\e02a'}.oi-calendar:before{content:'\e02b'}.oi-camera-slr:before{content:'\e02c'}.oi-caret-bottom:before{content:'\e02d'}.oi-caret-left:before{content:'\e02e'}.oi-caret-right:before{content:'\e02f'}.oi-caret-top:before{content:'\e030'}.oi-cart:before{content:'\e031'}.oi-chat:before{content:'\e032'}.oi-check:before{content:'\e033'}.oi-chevron-bottom:before{content:'\e034'}.oi-chevron-left:before{content:'\e035'}.oi-chevron-right:before{content:'\e036'}.oi-chevron-top:before{content:'\e037'}.oi-circle-check:before{content:'\e038'}.oi-circle-x:before{content:'\e039'}.oi-clipboard:before{content:'\e03a'}.oi-clock:before{content:'\e03b'}.oi-cloud-download:before{content:'\e03c'}.oi-cloud-upload:before{content:'\e03d'}.oi-cloud:before{content:'\e03e'}.oi-cloudy:before{content:'\e03f'}.oi-code:before{content:'\e040'}.oi-cog:before{content:'\e041'}.oi-collapse-down:before{content:'\e042'}.oi-collapse-left:before{content:'\e043'}.oi-collapse-right:before{content:'\e044'}.oi-collapse-up:before{content:'\e045'}.oi-command:before{content:'\e046'}.oi-comment-square:before{content:'\e047'}.oi-compass:before{content:'\e048'}.oi-contrast:before{content:'\e049'}.oi-copywriting:before{content:'\e04a'}.oi-credit-card:before{content:'\e04b'}.oi-crop:before{content:'\e04c'}.oi-dashboard:before{content:'\e04d'}.oi-data-transfer-download:before{content:'\e04e'}.oi-data-transfer-upload:before{content:'\e04f'}.oi-delete:before{content:'\e050'}.oi-dial:before{content:'\e051'}.oi-document:before{content:'\e052'}.oi-dollar:before{content:'\e053'}.oi-double-quote-sans-left:before{content:'\e054'}.oi-double-quote-sans-right:before{content:'\e055'}.oi-double-quote-serif-left:before{content:'\e056'}.oi-double-quote-serif-right:before{content:'\e057'}.oi-droplet:before{content:'\e058'}.oi-eject:before{content:'\e059'}.oi-elevator:before{content:'\e05a'}.oi-ellipses:before{content:'\e05b'}.oi-envelope-closed:before{content:'\e05c'}.oi-envelope-open:before{content:'\e05d'}.oi-euro:before{content:'\e05e'}.oi-excerpt:before{content:'\e05f'}.oi-expand-down:before{content:'\e060'}.oi-expand-left:before{content:'\e061'}.oi-expand-right:before{content:'\e062'}.oi-expand-up:before{content:'\e063'}.oi-external-link:before{content:'\e064'}.oi-eye:before{content:'\e065'}.oi-eyedropper:before{content:'\e066'}.oi-file:before{content:'\e067'}.oi-fire:before{content:'\e068'}.oi-flag:before{content:'\e069'}.oi-flash:before{content:'\e06a'}.oi-folder:before{content:'\e06b'}.oi-fork:before{content:'\e06c'}.oi-fullscreen-enter:before{content:'\e06d'}.oi-fullscreen-exit:before{content:'\e06e'}.oi-globe:before{content:'\e06f'}.oi-graph:before{content:'\e070'}.oi-grid-four-up:before{content:'\e071'}.oi-grid-three-up:before{content:'\e072'}.oi-grid-two-up:before{content:'\e073'}.oi-hard-drive:before{content:'\e074'}.oi-header:before{content:'\e075'}.oi-headphones:before{content:'\e076'}.oi-heart:before{content:'\e077'}.oi-home:before{content:'\e078'}.oi-image:before{content:'\e079'}.oi-inbox:before{content:'\e07a'}.oi-infinity:before{content:'\e07b'}.oi-info:before{content:'\e07c'}.oi-italic:before{content:'\e07d'}.oi-justify-center:before{content:'\e07e'}.oi-justify-left:before{content:'\e07f'}.oi-justify-right:before{content:'\e080'}.oi-key:before{content:'\e081'}.oi-laptop:before{content:'\e082'}.oi-layers:before{content:'\e083'}.oi-lightbulb:before{content:'\e084'}.oi-link-broken:before{content:'\e085'}.oi-link-intact:before{content:'\e086'}.oi-list-rich:before{content:'\e087'}.oi-list:before{content:'\e088'}.oi-location:before{content:'\e089'}.oi-lock-locked:before{content:'\e08a'}.oi-lock-unlocked:before{content:'\e08b'}.oi-loop-circular:before{content:'\e08c'}.oi-loop-square:before{content:'\e08d'}.oi-loop:before{content:'\e08e'}.oi-magnifying-glass:before{content:'\e08f'}.oi-map-marker:before{content:'\e090'}.oi-map:before{content:'\e091'}.oi-media-pause:before{content:'\e092'}.oi-media-play:before{content:'\e093'}.oi-media-record:before{content:'\e094'}.oi-media-skip-backward:before{content:'\e095'}.oi-media-skip-forward:before{content:'\e096'}.oi-media-step-backward:before{content:'\e097'}.oi-media-step-forward:before{content:'\e098'}.oi-media-stop:before{content:'\e099'}.oi-medical-cross:before{content:'\e09a'}.oi-menu:before{content:'\e09b'}.oi-microphone:before{content:'\e09c'}.oi-minus:before{content:'\e09d'}.oi-monitor:before{content:'\e09e'}.oi-moon:before{content:'\e09f'}.oi-move:before{content:'\e0a0'}.oi-musical-note:before{content:'\e0a1'}.oi-paperclip:before{content:'\e0a2'}.oi-pencil:before{content:'\e0a3'}.oi-people:before{content:'\e0a4'}.oi-person:before{content:'\e0a5'}.oi-phone:before{content:'\e0a6'}.oi-pie-chart:before{content:'\e0a7'}.oi-pin:before{content:'\e0a8'}.oi-play-circle:before{content:'\e0a9'}.oi-plus:before{content:'\e0aa'}.oi-power-standby:before{content:'\e0ab'}.oi-print:before{content:'\e0ac'}.oi-project:before{content:'\e0ad'}.oi-pulse:before{content:'\e0ae'}.oi-puzzle-piece:before{content:'\e0af'}.oi-question-mark:before{content:'\e0b0'}.oi-rain:before{content:'\e0b1'}.oi-random:before{content:'\e0b2'}.oi-reload:before{content:'\e0b3'}.oi-resize-both:before{content:'\e0b4'}.oi-resize-height:before{content:'\e0b5'}.oi-resize-width:before{content:'\e0b6'}.oi-rss-alt:before{content:'\e0b7'}.oi-rss:before{content:'\e0b8'}.oi-script:before{content:'\e0b9'}.oi-share-boxed:before{content:'\e0ba'}.oi-share:before{content:'\e0bb'}.oi-shield:before{content:'\e0bc'}.oi-signal:before{content:'\e0bd'}.oi-signpost:before{content:'\e0be'}.oi-sort-ascending:before{content:'\e0bf'}.oi-sort-descending:before{content:'\e0c0'}.oi-spreadsheet:before{content:'\e0c1'}.oi-star:before{content:'\e0c2'}.oi-sun:before{content:'\e0c3'}.oi-tablet:before{content:'\e0c4'}.oi-tag:before{content:'\e0c5'}.oi-tags:before{content:'\e0c6'}.oi-target:before{content:'\e0c7'}.oi-task:before{content:'\e0c8'}.oi-terminal:before{content:'\e0c9'}.oi-text:before{content:'\e0ca'}.oi-thumb-down:before{content:'\e0cb'}.oi-thumb-up:before{content:'\e0cc'}.oi-timer:before{content:'\e0cd'}.oi-transfer:before{content:'\e0ce'}.oi-trash:before{content:'\e0cf'}.oi-underline:before{content:'\e0d0'}.oi-vertical-align-bottom:before{content:'\e0d1'}.oi-vertical-align-center:before{content:'\e0d2'}.oi-vertical-align-top:before{content:'\e0d3'}.oi-video:before{content:'\e0d4'}.oi-volume-high:before{content:'\e0d5'}.oi-volume-low:before{content:'\e0d6'}.oi-volume-off:before{content:'\e0d7'}.oi-warning:before{content:'\e0d8'}.oi-wifi:before{content:'\e0d9'}.oi-wrench:before{content:'\e0da'}.oi-x:before{content:'\e0db'}.oi-yen:before{content:'\e0dc'}.oi-zoom-in:before{content:'\e0dd'}.oi-zoom-out:before{content:'\e0de'} -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Using Tailwind with Blazor 3 | date: 2022-07-20T00:00:00.000+01:00 4 | categories: 5 | - Blazor 6 | author: Jimmy Engström 7 | tags: 8 | - Blazor 9 | # image: /PostImages/2020-03-21-UsingHighchartsWithBlazor/highcharts.PNG 10 | 11 | --- 12 | #Using Tailwind with Blazor 13 | This is a draft of a blog post about using Tailwind with Blazor. I will update this post as I go along. 14 | This blog post will be published on my blog https://engstromjimmy.com/ 15 | 16 | ## The problem? 17 | Back in the day when I learned CSS, it was a big thing not to repeat yourself. you should have all the styles in one central place. 18 | Then came isolated CSS, which simply meant we writing CSS for one single component and the styles will not affect anything else on the site. 19 | Pretty much the opposite of what we did before. 20 | 21 | Personally, I am a big fan of semantic CSS, meaning that I try to not use class names at all. 22 | Instead, I use the HTML elements as selectors. 23 | For example: 24 | ```css 25 | button { 26 | font-size: 2rem; 27 | } 28 | ``` 29 | This will make sure ALL button elements on the site will have a font-size of 2rem. 30 | The alternative is to add a class to the button to set the style. 31 | 32 | It took me a while but I'm starting to see the benefits of having isolated CSS. 33 | If the style is ONLY going to be used in one component, why not have it there? 34 | In Blazor we can do that by adding a CSS file next to the component naming if the same way and adding .css 35 | ```ComponentName.razor.css```. 36 | 37 | Bootstrap is bloated, it comes with "everything". 38 | We can limit what it brings with it but it does take some effort. 39 | 40 | ## But what about Tailwind? 41 | I am honestly not a fan of Tailwind, I am not even sure I want to try it. 42 | But I have seen a lot of people using it and I wanted to see what it was all about. 43 | 44 | Tailwind does not come with any pre-defined styles at all. 45 | Instead, you have to add the styles you want to use. 46 | Good: there is nothing predefined I have to take conscious choices for everything we need. 47 | Bad: I have to take conscious choices for everything we need. 48 | Bootstrap gets a lot of hate because "all sites look the same", but you can also see it as you get help to get started quickly. 49 | 50 | Tailwind takes the classes that we use in our documents and creates a CSS that only contains the thing we need. 51 | Hence removing the bloat compared to Bootstrap. 52 | 53 | One of the problems with Tailwind is that it has micro classes, classes that only affect one of a few things. 54 | That means that a bootstrap button would look like this: 55 | ``` html 56 | 57 | ``` 58 | would look something like this in Tailwind: 59 | ``` html 60 | 61 | ``` 62 | Disclaimer: I converted Boostrap to Tailwind using an online tool, there are definitely better ways of converting from Bootstrap. But this gives us a feeling of what the problem is. 63 | Our markup is going to be pretty bloated. 64 | I saw that there is an extension for Visual Studio Code that hides the classes in the editor to avoid all the clutter. 65 | 66 | This is also the preferred way of doing styling, we could group everything into a .button-class but that is not the preferred way in Tailwind. 67 | The idea is to style components separately in Angular and React for example. 68 | In Blazor we have components as well so it is probably a good match for Blazor as well. 69 | 70 | To use Tailwind we need a utility, a utility that collects all the classes used and creates a CSS. 71 | The simplest way to get this to work is to use NPM. 72 | One of the really nice things about working with Blazor is that I don't need NPM. 73 | There is also a CLI you can download from Tailwind (bypassing the need for NPM), but then how do we make sure everyone in the team is running the same version? 74 | 75 | ## The solution 76 | 77 | But what if there was a way to combine the technologies? 78 | Take the best from everything and avoid the "bad"? 79 | 80 | In this blog post, I am going to try to solve three problems. 81 | 1. Making sure everyone on the team is running the same version of the CLI 82 | 2. Make sure Blazor isolated CSS works 83 | 3. Not adding all the styles to the class tag 84 | 85 | ### Downloading the CLI 86 | Instead of having all the members of the team downloading and manage their Tailwind CLI we can use Visual Studio to download and install it for us automatically. 87 | In our csproj file, we can simply add the version we want to use and let Visual studio manage the versioning. 88 | Add the following to our csproj 89 | ```html 90 | 91 | 3.1.8 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | tailwindcss-windows-x64.exe 105 | tailwindcss-linux-x64 106 | tailwindcss-macos-x64 107 | $([System.IO.Path]::Combine($(MSBuildThisFileDirectory), ".tailwind")) 108 | tailwindcss$([System.IO.Path]::GetExtension($(TailwindDownloadName))) 109 | $([System.IO.Path]::Combine($(TailwindExeDir), $(TailwindExeName))) 110 | 111 | 112 | 113 | 114 | ``` 115 | This code will make sure the selected version is installed, and when we update the version it will make sure to update it for all members of the team. 116 | 117 | What about Isolated CSS? 118 | That is what we will look at next. 119 | 120 | ### Making Isolated CSS work 121 | When we make changes to isolated CSS, Visual Studio will take that CSS and produce a CSS file. 122 | We can hook into that process, letting Visual Studio produce the file just as before, and then let Tailwind rewrite the file so that we get the CSS classes we need. 123 | 124 | ``` csharp 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | ``` 145 | 146 | This code does two things. 147 | 1. Triggers Tailwind to generate files on Build 148 | 2. Triggers Tailwind to intercept and generate isolated CSS on save 149 | 150 | In most cases, this should be all we need, but sometimes we want to change the CSS without having to build the project and that can still be done using the CLI from the command line. 151 | I really like this approach because the tolling is in the workflow of Visual studio. I don't have to use the CLI if I don't want to. 152 | 153 | Besides this, we need to set up our project for Tailwind. 154 | Simply run the following command in the project folder: 155 | ``` 156 | .\.tailwind\tailwindcss init 157 | ``` 158 | This will give us a config file that we need to change a bit. 159 | By default the ```tailwind.config.js``` looks like this: 160 | /** @type {import('tailwindcss').Config} */ 161 | module.exports = { 162 | content: [], 163 | theme: { 164 | extend: {}, 165 | }, 166 | plugins: [], 167 | } 168 | 169 | The content attribute we need to specify what files it should process. 170 | In our case we want it to process .razor, .html and .cshtml. 171 | This should support both Blazor server as well as Blazor WebAssembly. 172 | 173 | ```javascript 174 | /** @type {import('tailwindcss').Config} */ 175 | module.exports = { 176 | content: [ 177 | './**/*.html', 178 | './**/*.cshtml', 179 | './**/*.razor', 180 | ], 181 | theme: { 182 | extend: {}, 183 | }, 184 | plugins: [], 185 | } 186 | 187 | ``` 188 | 189 | ### Semantic CSS? 190 | Now when everything is set up we can put our Tailwind styles inside our components by using isolated CSS. 191 | This means that the CSS we write is only affecting that particular component, which also means that we can write our semantic CSS right there. 192 | We don't need to add any classes in the markup itself but instead have the CSS inside the isolated CSS file. 193 | 194 | No NPM 195 | No manually downloading CLI 196 | No bloated markup 197 | 198 | I'll be honest I am still not a fan, but I think that since we can remove some of my pain points perhaps one day, I will start working with it =) 199 | It feels a bit like I am going out of my way to remove the dependency on NPM, and if you don't mind NPM you should definitely continue to use it. 200 | You can still use isolated CSS but use NPM commands instead of Tailwind CLI. 201 | 202 | ```Counter.razor``` with Tailwind: 203 | 204 | ```html 205 | @page "/counter" 206 | 207 | Counter 208 | 209 |

Counter

210 | 211 |

Current count: @currentCount

212 | 213 | 215 | ``` 216 | ```Counter.razor``` with Tailwind, isolated CSS and semantic CSS : 217 | 218 | ``` html 219 | @page "/counter" 220 | 221 | Counter 222 | 223 |

Counter

224 | 225 |

Current count: @currentCount

226 | 227 | 228 | ``` 229 | and the isolated CSS```Counter.razor.css``` 230 | ``` css 231 | h1 { 232 | @apply text-4xl font-bold mb-4; 233 | } 234 | 235 | button { 236 | @apply mt-4 bg-gradient-to-br from-green-600 to-green-500 hover:from-green-500 hover:to-green-600 text-white p-2 rounded border border-green-600 237 | } 238 | ``` 239 | 240 | The base of this Tailwind implementation is borrowed from Chris Sainty. 241 | You can find his repo [here](["https://github.com/chrissainty/ondotnet-tailwindcss"]). 242 | 243 | 244 | 245 | -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/wwwroot/css/app.css: -------------------------------------------------------------------------------- 1 | /* 2 | ! tailwindcss v3.1.8 | MIT License | https://tailwindcss.com 3 | */ 4 | 5 | /* 6 | 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) 7 | 2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116) 8 | */ 9 | 10 | *, 11 | ::before, 12 | ::after { 13 | box-sizing: border-box; 14 | /* 1 */ 15 | border-width: 0; 16 | /* 2 */ 17 | border-style: solid; 18 | /* 2 */ 19 | border-color: #e5e7eb; 20 | /* 2 */ 21 | } 22 | 23 | ::before, 24 | ::after { 25 | --tw-content: ''; 26 | } 27 | 28 | /* 29 | 1. Use a consistent sensible line-height in all browsers. 30 | 2. Prevent adjustments of font size after orientation changes in iOS. 31 | 3. Use a more readable tab size. 32 | 4. Use the user's configured `sans` font-family by default. 33 | */ 34 | 35 | html { 36 | line-height: 1.5; 37 | /* 1 */ 38 | -webkit-text-size-adjust: 100%; 39 | /* 2 */ 40 | -moz-tab-size: 4; 41 | /* 3 */ 42 | -o-tab-size: 4; 43 | tab-size: 4; 44 | /* 3 */ 45 | font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; 46 | /* 4 */ 47 | } 48 | 49 | /* 50 | 1. Remove the margin in all browsers. 51 | 2. Inherit line-height from `html` so users can set them as a class directly on the `html` element. 52 | */ 53 | 54 | body { 55 | margin: 0; 56 | /* 1 */ 57 | line-height: inherit; 58 | /* 2 */ 59 | } 60 | 61 | /* 62 | 1. Add the correct height in Firefox. 63 | 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655) 64 | 3. Ensure horizontal rules are visible by default. 65 | */ 66 | 67 | hr { 68 | height: 0; 69 | /* 1 */ 70 | color: inherit; 71 | /* 2 */ 72 | border-top-width: 1px; 73 | /* 3 */ 74 | } 75 | 76 | /* 77 | Add the correct text decoration in Chrome, Edge, and Safari. 78 | */ 79 | 80 | abbr:where([title]) { 81 | -webkit-text-decoration: underline dotted; 82 | text-decoration: underline dotted; 83 | } 84 | 85 | /* 86 | Remove the default font size and weight for headings. 87 | */ 88 | 89 | h1, 90 | h2, 91 | h3, 92 | h4, 93 | h5, 94 | h6 { 95 | font-size: inherit; 96 | font-weight: inherit; 97 | } 98 | 99 | /* 100 | Reset links to optimize for opt-in styling instead of opt-out. 101 | */ 102 | 103 | a { 104 | color: inherit; 105 | text-decoration: inherit; 106 | } 107 | 108 | /* 109 | Add the correct font weight in Edge and Safari. 110 | */ 111 | 112 | b, 113 | strong { 114 | font-weight: bolder; 115 | } 116 | 117 | /* 118 | 1. Use the user's configured `mono` font family by default. 119 | 2. Correct the odd `em` font sizing in all browsers. 120 | */ 121 | 122 | code, 123 | kbd, 124 | samp, 125 | pre { 126 | font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; 127 | /* 1 */ 128 | font-size: 1em; 129 | /* 2 */ 130 | } 131 | 132 | /* 133 | Add the correct font size in all browsers. 134 | */ 135 | 136 | small { 137 | font-size: 80%; 138 | } 139 | 140 | /* 141 | Prevent `sub` and `sup` elements from affecting the line height in all browsers. 142 | */ 143 | 144 | sub, 145 | sup { 146 | font-size: 75%; 147 | line-height: 0; 148 | position: relative; 149 | vertical-align: baseline; 150 | } 151 | 152 | sub { 153 | bottom: -0.25em; 154 | } 155 | 156 | sup { 157 | top: -0.5em; 158 | } 159 | 160 | /* 161 | 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297) 162 | 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016) 163 | 3. Remove gaps between table borders by default. 164 | */ 165 | 166 | table { 167 | text-indent: 0; 168 | /* 1 */ 169 | border-color: inherit; 170 | /* 2 */ 171 | border-collapse: collapse; 172 | /* 3 */ 173 | } 174 | 175 | /* 176 | 1. Change the font styles in all browsers. 177 | 2. Remove the margin in Firefox and Safari. 178 | 3. Remove default padding in all browsers. 179 | */ 180 | 181 | button, 182 | input, 183 | optgroup, 184 | select, 185 | textarea { 186 | font-family: inherit; 187 | /* 1 */ 188 | font-size: 100%; 189 | /* 1 */ 190 | font-weight: inherit; 191 | /* 1 */ 192 | line-height: inherit; 193 | /* 1 */ 194 | color: inherit; 195 | /* 1 */ 196 | margin: 0; 197 | /* 2 */ 198 | padding: 0; 199 | /* 3 */ 200 | } 201 | 202 | /* 203 | Remove the inheritance of text transform in Edge and Firefox. 204 | */ 205 | 206 | button, 207 | select { 208 | text-transform: none; 209 | } 210 | 211 | /* 212 | 1. Correct the inability to style clickable types in iOS and Safari. 213 | 2. Remove default button styles. 214 | */ 215 | 216 | button, 217 | [type='button'], 218 | [type='reset'], 219 | [type='submit'] { 220 | -webkit-appearance: button; 221 | /* 1 */ 222 | background-color: transparent; 223 | /* 2 */ 224 | background-image: none; 225 | /* 2 */ 226 | } 227 | 228 | /* 229 | Use the modern Firefox focus style for all focusable elements. 230 | */ 231 | 232 | :-moz-focusring { 233 | outline: auto; 234 | } 235 | 236 | /* 237 | Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737) 238 | */ 239 | 240 | :-moz-ui-invalid { 241 | box-shadow: none; 242 | } 243 | 244 | /* 245 | Add the correct vertical alignment in Chrome and Firefox. 246 | */ 247 | 248 | progress { 249 | vertical-align: baseline; 250 | } 251 | 252 | /* 253 | Correct the cursor style of increment and decrement buttons in Safari. 254 | */ 255 | 256 | ::-webkit-inner-spin-button, 257 | ::-webkit-outer-spin-button { 258 | height: auto; 259 | } 260 | 261 | /* 262 | 1. Correct the odd appearance in Chrome and Safari. 263 | 2. Correct the outline style in Safari. 264 | */ 265 | 266 | [type='search'] { 267 | -webkit-appearance: textfield; 268 | /* 1 */ 269 | outline-offset: -2px; 270 | /* 2 */ 271 | } 272 | 273 | /* 274 | Remove the inner padding in Chrome and Safari on macOS. 275 | */ 276 | 277 | ::-webkit-search-decoration { 278 | -webkit-appearance: none; 279 | } 280 | 281 | /* 282 | 1. Correct the inability to style clickable types in iOS and Safari. 283 | 2. Change font properties to `inherit` in Safari. 284 | */ 285 | 286 | ::-webkit-file-upload-button { 287 | -webkit-appearance: button; 288 | /* 1 */ 289 | font: inherit; 290 | /* 2 */ 291 | } 292 | 293 | /* 294 | Add the correct display in Chrome and Safari. 295 | */ 296 | 297 | summary { 298 | display: list-item; 299 | } 300 | 301 | /* 302 | Removes the default spacing and border for appropriate elements. 303 | */ 304 | 305 | blockquote, 306 | dl, 307 | dd, 308 | h1, 309 | h2, 310 | h3, 311 | h4, 312 | h5, 313 | h6, 314 | hr, 315 | figure, 316 | p, 317 | pre { 318 | margin: 0; 319 | } 320 | 321 | fieldset { 322 | margin: 0; 323 | padding: 0; 324 | } 325 | 326 | legend { 327 | padding: 0; 328 | } 329 | 330 | ol, 331 | ul, 332 | menu { 333 | list-style: none; 334 | margin: 0; 335 | padding: 0; 336 | } 337 | 338 | /* 339 | Prevent resizing textareas horizontally by default. 340 | */ 341 | 342 | textarea { 343 | resize: vertical; 344 | } 345 | 346 | /* 347 | 1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300) 348 | 2. Set the default placeholder color to the user's configured gray 400 color. 349 | */ 350 | 351 | input::-moz-placeholder, textarea::-moz-placeholder { 352 | opacity: 1; 353 | /* 1 */ 354 | color: #9ca3af; 355 | /* 2 */ 356 | } 357 | 358 | input::placeholder, 359 | textarea::placeholder { 360 | opacity: 1; 361 | /* 1 */ 362 | color: #9ca3af; 363 | /* 2 */ 364 | } 365 | 366 | /* 367 | Set the default cursor for buttons. 368 | */ 369 | 370 | button, 371 | [role="button"] { 372 | cursor: pointer; 373 | } 374 | 375 | /* 376 | Make sure disabled buttons don't get the pointer cursor. 377 | */ 378 | 379 | :disabled { 380 | cursor: default; 381 | } 382 | 383 | /* 384 | 1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14) 385 | 2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210) 386 | This can trigger a poorly considered lint error in some tools but is included by design. 387 | */ 388 | 389 | img, 390 | svg, 391 | video, 392 | canvas, 393 | audio, 394 | iframe, 395 | embed, 396 | object { 397 | display: block; 398 | /* 1 */ 399 | vertical-align: middle; 400 | /* 2 */ 401 | } 402 | 403 | /* 404 | Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14) 405 | */ 406 | 407 | img, 408 | video { 409 | max-width: 100%; 410 | height: auto; 411 | } 412 | 413 | *, ::before, ::after { 414 | --tw-border-spacing-x: 0; 415 | --tw-border-spacing-y: 0; 416 | --tw-translate-x: 0; 417 | --tw-translate-y: 0; 418 | --tw-rotate: 0; 419 | --tw-skew-x: 0; 420 | --tw-skew-y: 0; 421 | --tw-scale-x: 1; 422 | --tw-scale-y: 1; 423 | --tw-pan-x: ; 424 | --tw-pan-y: ; 425 | --tw-pinch-zoom: ; 426 | --tw-scroll-snap-strictness: proximity; 427 | --tw-ordinal: ; 428 | --tw-slashed-zero: ; 429 | --tw-numeric-figure: ; 430 | --tw-numeric-spacing: ; 431 | --tw-numeric-fraction: ; 432 | --tw-ring-inset: ; 433 | --tw-ring-offset-width: 0px; 434 | --tw-ring-offset-color: #fff; 435 | --tw-ring-color: rgb(59 130 246 / 0.5); 436 | --tw-ring-offset-shadow: 0 0 #0000; 437 | --tw-ring-shadow: 0 0 #0000; 438 | --tw-shadow: 0 0 #0000; 439 | --tw-shadow-colored: 0 0 #0000; 440 | --tw-blur: ; 441 | --tw-brightness: ; 442 | --tw-contrast: ; 443 | --tw-grayscale: ; 444 | --tw-hue-rotate: ; 445 | --tw-invert: ; 446 | --tw-saturate: ; 447 | --tw-sepia: ; 448 | --tw-drop-shadow: ; 449 | --tw-backdrop-blur: ; 450 | --tw-backdrop-brightness: ; 451 | --tw-backdrop-contrast: ; 452 | --tw-backdrop-grayscale: ; 453 | --tw-backdrop-hue-rotate: ; 454 | --tw-backdrop-invert: ; 455 | --tw-backdrop-opacity: ; 456 | --tw-backdrop-saturate: ; 457 | --tw-backdrop-sepia: ; 458 | } 459 | 460 | ::-webkit-backdrop { 461 | --tw-border-spacing-x: 0; 462 | --tw-border-spacing-y: 0; 463 | --tw-translate-x: 0; 464 | --tw-translate-y: 0; 465 | --tw-rotate: 0; 466 | --tw-skew-x: 0; 467 | --tw-skew-y: 0; 468 | --tw-scale-x: 1; 469 | --tw-scale-y: 1; 470 | --tw-pan-x: ; 471 | --tw-pan-y: ; 472 | --tw-pinch-zoom: ; 473 | --tw-scroll-snap-strictness: proximity; 474 | --tw-ordinal: ; 475 | --tw-slashed-zero: ; 476 | --tw-numeric-figure: ; 477 | --tw-numeric-spacing: ; 478 | --tw-numeric-fraction: ; 479 | --tw-ring-inset: ; 480 | --tw-ring-offset-width: 0px; 481 | --tw-ring-offset-color: #fff; 482 | --tw-ring-color: rgb(59 130 246 / 0.5); 483 | --tw-ring-offset-shadow: 0 0 #0000; 484 | --tw-ring-shadow: 0 0 #0000; 485 | --tw-shadow: 0 0 #0000; 486 | --tw-shadow-colored: 0 0 #0000; 487 | --tw-blur: ; 488 | --tw-brightness: ; 489 | --tw-contrast: ; 490 | --tw-grayscale: ; 491 | --tw-hue-rotate: ; 492 | --tw-invert: ; 493 | --tw-saturate: ; 494 | --tw-sepia: ; 495 | --tw-drop-shadow: ; 496 | --tw-backdrop-blur: ; 497 | --tw-backdrop-brightness: ; 498 | --tw-backdrop-contrast: ; 499 | --tw-backdrop-grayscale: ; 500 | --tw-backdrop-hue-rotate: ; 501 | --tw-backdrop-invert: ; 502 | --tw-backdrop-opacity: ; 503 | --tw-backdrop-saturate: ; 504 | --tw-backdrop-sepia: ; 505 | } 506 | 507 | ::backdrop { 508 | --tw-border-spacing-x: 0; 509 | --tw-border-spacing-y: 0; 510 | --tw-translate-x: 0; 511 | --tw-translate-y: 0; 512 | --tw-rotate: 0; 513 | --tw-skew-x: 0; 514 | --tw-skew-y: 0; 515 | --tw-scale-x: 1; 516 | --tw-scale-y: 1; 517 | --tw-pan-x: ; 518 | --tw-pan-y: ; 519 | --tw-pinch-zoom: ; 520 | --tw-scroll-snap-strictness: proximity; 521 | --tw-ordinal: ; 522 | --tw-slashed-zero: ; 523 | --tw-numeric-figure: ; 524 | --tw-numeric-spacing: ; 525 | --tw-numeric-fraction: ; 526 | --tw-ring-inset: ; 527 | --tw-ring-offset-width: 0px; 528 | --tw-ring-offset-color: #fff; 529 | --tw-ring-color: rgb(59 130 246 / 0.5); 530 | --tw-ring-offset-shadow: 0 0 #0000; 531 | --tw-ring-shadow: 0 0 #0000; 532 | --tw-shadow: 0 0 #0000; 533 | --tw-shadow-colored: 0 0 #0000; 534 | --tw-blur: ; 535 | --tw-brightness: ; 536 | --tw-contrast: ; 537 | --tw-grayscale: ; 538 | --tw-hue-rotate: ; 539 | --tw-invert: ; 540 | --tw-saturate: ; 541 | --tw-sepia: ; 542 | --tw-drop-shadow: ; 543 | --tw-backdrop-blur: ; 544 | --tw-backdrop-brightness: ; 545 | --tw-backdrop-contrast: ; 546 | --tw-backdrop-grayscale: ; 547 | --tw-backdrop-hue-rotate: ; 548 | --tw-backdrop-invert: ; 549 | --tw-backdrop-opacity: ; 550 | --tw-backdrop-saturate: ; 551 | --tw-backdrop-sepia: ; 552 | } 553 | 554 | .fixed { 555 | position: fixed; 556 | } 557 | 558 | .absolute { 559 | position: absolute; 560 | } 561 | 562 | .inset-x-0 { 563 | left: 0px; 564 | right: 0px; 565 | } 566 | 567 | .bottom-0 { 568 | bottom: 0px; 569 | } 570 | 571 | .left-0 { 572 | left: 0px; 573 | } 574 | 575 | .z-50 { 576 | z-index: 50; 577 | } 578 | 579 | .mx-auto { 580 | margin-left: auto; 581 | margin-right: auto; 582 | } 583 | 584 | .mt-6 { 585 | margin-top: 1.5rem; 586 | } 587 | 588 | .ml-8 { 589 | margin-left: 2rem; 590 | } 591 | 592 | .mr-6 { 593 | margin-right: 1.5rem; 594 | } 595 | 596 | .mb-4 { 597 | margin-bottom: 1rem; 598 | } 599 | 600 | .flex { 601 | display: flex; 602 | } 603 | 604 | .table { 605 | display: table; 606 | } 607 | 608 | .hidden { 609 | display: none; 610 | } 611 | 612 | .w-1\/3 { 613 | width: 33.333333%; 614 | } 615 | 616 | .w-full { 617 | width: 100%; 618 | } 619 | 620 | .rotate-2 { 621 | --tw-rotate: 2deg; 622 | transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 623 | } 624 | 625 | .transform { 626 | transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 627 | } 628 | 629 | .cursor-pointer { 630 | cursor: pointer; 631 | } 632 | 633 | .justify-between { 634 | justify-content: space-between; 635 | } 636 | 637 | .rounded-3xl { 638 | border-radius: 1.5rem; 639 | } 640 | 641 | .border-b-4 { 642 | border-bottom-width: 4px; 643 | } 644 | 645 | .border-t-2 { 646 | border-top-width: 2px; 647 | } 648 | 649 | .border-purple-700 { 650 | --tw-border-opacity: 1; 651 | border-color: rgb(126 34 206 / var(--tw-border-opacity)); 652 | } 653 | 654 | .border-yellow-800 { 655 | --tw-border-opacity: 1; 656 | border-color: rgb(133 77 14 / var(--tw-border-opacity)); 657 | } 658 | 659 | .bg-yellow-100 { 660 | --tw-bg-opacity: 1; 661 | background-color: rgb(254 249 195 / var(--tw-bg-opacity)); 662 | } 663 | 664 | .bg-gradient-to-br { 665 | background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); 666 | } 667 | 668 | .from-green-700 { 669 | --tw-gradient-from: #15803d; 670 | --tw-gradient-to: rgb(21 128 61 / 0); 671 | --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); 672 | } 673 | 674 | .to-green-500 { 675 | --tw-gradient-to: #22c55e; 676 | } 677 | 678 | .p-6 { 679 | padding: 1.5rem; 680 | } 681 | 682 | .pb-2 { 683 | padding-bottom: 0.5rem; 684 | } 685 | 686 | .pt-2\.5 { 687 | padding-top: 0.625rem; 688 | } 689 | 690 | .pr-5 { 691 | padding-right: 1.25rem; 692 | } 693 | 694 | .pb-3 { 695 | padding-bottom: 0.75rem; 696 | } 697 | 698 | .pl-5 { 699 | padding-left: 1.25rem; 700 | } 701 | 702 | .pt-2 { 703 | padding-top: 0.5rem; 704 | } 705 | 706 | .text-center { 707 | text-align: center; 708 | } 709 | 710 | .font-bold { 711 | font-weight: 700; 712 | } 713 | 714 | .uppercase { 715 | text-transform: uppercase; 716 | } 717 | 718 | .tracking-wider { 719 | letter-spacing: 0.05em; 720 | } 721 | 722 | .text-white { 723 | --tw-text-opacity: 1; 724 | color: rgb(255 255 255 / var(--tw-text-opacity)); 725 | } 726 | 727 | .text-yellow-900 { 728 | --tw-text-opacity: 1; 729 | color: rgb(113 63 18 / var(--tw-text-opacity)); 730 | } 731 | 732 | .underline { 733 | -webkit-text-decoration-line: underline; 734 | text-decoration-line: underline; 735 | } 736 | 737 | .shadow-lg { 738 | --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); 739 | --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); 740 | box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); 741 | } 742 | 743 | .transition-all { 744 | transition-property: all; 745 | transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 746 | transition-duration: 150ms; 747 | } 748 | 749 | .delay-150 { 750 | transition-delay: 150ms; 751 | } 752 | 753 | .duration-300 { 754 | transition-duration: 300ms; 755 | } 756 | 757 | .ease-in-out { 758 | transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 759 | } 760 | 761 | .tableheader { 762 | border-bottom-width: 4px; 763 | --tw-border-opacity: 1; 764 | border-color: rgb(147 51 234 / var(--tw-border-opacity)); 765 | padding: 0.5rem; 766 | text-align: left; 767 | font-size: 0.875rem; 768 | line-height: 1.25rem; 769 | text-transform: uppercase; 770 | letter-spacing: 0.05em; 771 | } 772 | 773 | .hover\:border-green-400:hover { 774 | --tw-border-opacity: 1; 775 | border-color: rgb(74 222 128 / var(--tw-border-opacity)); 776 | } 777 | 778 | .hover\:no-underline:hover { 779 | -webkit-text-decoration-line: none; 780 | text-decoration-line: none; 781 | } 782 | -------------------------------------------------------------------------------- /BlazorTailwindWebAssembly/BlazorTailwindWebAssembly/wwwroot/css/open-iconic/font/fonts/open-iconic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | Created by FontForge 20120731 at Tue Jul 1 20:39:22 2014 9 | By P.J. Onori 10 | Created by P.J. Onori with FontForge 2.0 (http://fontforge.sf.net) 11 | 12 | 13 | 14 | 27 | 28 | 30 | 32 | 34 | 36 | 38 | 40 | 42 | 45 | 47 | 49 | 51 | 53 | 55 | 57 | 59 | 61 | 63 | 65 | 67 | 69 | 71 | 74 | 76 | 79 | 81 | 84 | 86 | 88 | 91 | 93 | 95 | 98 | 100 | 102 | 104 | 106 | 109 | 112 | 115 | 117 | 121 | 123 | 125 | 127 | 130 | 132 | 134 | 136 | 138 | 141 | 143 | 145 | 147 | 149 | 151 | 153 | 155 | 157 | 159 | 162 | 165 | 167 | 169 | 172 | 174 | 177 | 179 | 181 | 183 | 185 | 189 | 191 | 194 | 196 | 198 | 200 | 202 | 205 | 207 | 209 | 211 | 213 | 215 | 218 | 220 | 222 | 224 | 226 | 228 | 230 | 232 | 234 | 236 | 238 | 241 | 243 | 245 | 247 | 249 | 251 | 253 | 256 | 259 | 261 | 263 | 265 | 267 | 269 | 272 | 274 | 276 | 280 | 282 | 285 | 287 | 289 | 292 | 295 | 298 | 300 | 302 | 304 | 306 | 309 | 312 | 314 | 316 | 318 | 320 | 322 | 324 | 326 | 330 | 334 | 338 | 340 | 343 | 345 | 347 | 349 | 351 | 353 | 355 | 358 | 360 | 363 | 365 | 367 | 369 | 371 | 373 | 375 | 377 | 379 | 381 | 383 | 386 | 388 | 390 | 392 | 394 | 396 | 399 | 401 | 404 | 406 | 408 | 410 | 412 | 414 | 416 | 419 | 421 | 423 | 425 | 428 | 431 | 435 | 438 | 440 | 442 | 444 | 446 | 448 | 451 | 453 | 455 | 457 | 460 | 462 | 464 | 466 | 468 | 471 | 473 | 477 | 479 | 481 | 483 | 486 | 488 | 490 | 492 | 494 | 496 | 499 | 501 | 504 | 506 | 509 | 512 | 515 | 517 | 520 | 522 | 524 | 526 | 529 | 532 | 534 | 536 | 539 | 542 | 543 | 544 | --------------------------------------------------------------------------------