From c59e31abc96642d4e54e56e3aa8167806a35f35e Mon Sep 17 00:00:00 2001
From: Yan Zhu Download the compiled and minified Spectre CSS file (core ~10KB min+gzip): Include spectre.css located in /dist in your website or Web app spectre-icons.css and spectre-exp.css accordingly.
<link rel="stylesheet" href="spectre.min.css">
-<link rel="stylesheet" href="spectre-exp.min.css">
-<link rel="stylesheet" href="spectre-icons.min.css">
+ <link rel="stylesheet" href="spectre.min.css">
+<link rel="stylesheet" href="spectre-exp.min.css">
+<link rel="stylesheet" href="spectre-icons.min.css">
#Install from CDN
Alternatively, you can use the unpkg or cdnjs CDN to load compiled Spectre.css.
- <link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre.min.css">
-<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre-exp.min.css">
-<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre-icons.min.css">
+ <link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre.min.css">
+<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre-exp.min.css">
+<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre-icons.min.css">
#Install with NPM
npm install spectre.css --save
@@ -191,19 +191,19 @@
// Example of project-name.scss
// Define variables to override default ones
-$primary-color: #2e5bec;
-$dark-color: #3e396b;
+$primary-color: #2e5bec;
+$dark-color: #3e396b;
// Import full Spectre source code
-@import "node_modules/spectre.css/src/spectre";
+@import "node_modules/spectre.css/src/spectre";
Alternatively, you can create custom _variables.scss and import it to project-name.scss.
// Example of project-name.scss
-@import "variables";
+@import "variables";
// Import only the needed components
-@import "node_modules/spectre.css/src/buttons";
-@import "node_modules/spectre.css/src/forms";
+@import "node_modules/spectre.css/src/buttons";
+@import "node_modules/spectre.css/src/forms";
#Folder structure
spectre/
@@ -335,14 +335,14 @@
@mixin button-variant($color: $primary-color);
@mixin button-outline-variant($color: $primary-color);
- <!-- filled button with the success color -->
-.btn-success {
- @include button-variant($success-color);
+ <!-- filled button with the success color -->
+.btn-success {
+ @include button-variant($success-color);
}
-<!-- outlined button with the success color -->
-.btn-outline-success {
- @include button-outline-variant($success-color);
+<!-- outlined button with the success color -->
+.btn-outline-success {
+ @include button-outline-variant($success-color);
}
#Variables - Sizes
--
cgit v1.3.1-23-gd82d