]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
prep docs for displaying the colors
authorMark Otto <markdotto@gmail.com>
Thu, 15 Jun 2017 18:15:28 +0000 (11:15 -0700)
committerMark Otto <markdotto@gmail.com>
Thu, 15 Jun 2017 18:15:28 +0000 (11:15 -0700)
_data/colors.yml [new file with mode: 0644]
_data/grays.yml [new file with mode: 0644]
_data/theme-colors.yml [new file with mode: 0644]
assets/scss/_colors.scss [new file with mode: 0644]
assets/scss/docs.scss

diff --git a/_data/colors.yml b/_data/colors.yml
new file mode 100644 (file)
index 0000000..4208ec7
--- /dev/null
@@ -0,0 +1,26 @@
+- name: blue
+  hex: "#007aff"
+- name: indigo
+  hex: "#2b29bb"
+- name: purple
+  hex: "#882ae0"
+- name: pink
+  hex: "#f14095"
+- name: red
+  hex: "#ea0242"
+- name: orange
+  hex: "#ff8d00"
+- name: yellow
+  hex: "#ffec00"
+- name: green
+  hex: "#34da36"
+- name: teal
+  hex: "#1dde8e"
+- name: cyan
+  hex: "#08eff3"
+- name: white
+  hex: "#fff"
+- name: gray
+  hex: "#464a4c"
+- name: gray-dark
+  hex: "#292b2c"
diff --git a/_data/grays.yml b/_data/grays.yml
new file mode 100644 (file)
index 0000000..bf9750e
--- /dev/null
@@ -0,0 +1,18 @@
+- name: 100
+  hex: "#f8f9fa"
+- name: 200
+  hex: "#ebedef"
+- name: 300
+  hex: "#ced3d8"
+- name: 400
+  hex: "#abb3bd"
+- name: 500
+  hex: "#7c8a99"
+- name: 600
+  hex: "#55626f"
+- name: 700
+  hex: "#4a5560"
+- name: 800
+  hex: "#384048"
+- name: 900
+  hex: "#131619"
diff --git a/_data/theme-colors.yml b/_data/theme-colors.yml
new file mode 100644 (file)
index 0000000..25f86c3
--- /dev/null
@@ -0,0 +1,16 @@
+- name: primary
+  hex: "#007aff"
+- name: secondary
+  hex: "#ced4da"
+- name: success
+  hex: "#51cf66"
+- name: info
+  hex: "#38d9a9"
+- name: warning
+  hex: "#ff922b"
+- name: danger
+  hex: "#f03e3e"
+- name: foreground
+  hex: "#343a40"
+- name: background
+  hex: "#fff"
diff --git a/assets/scss/_colors.scss b/assets/scss/_colors.scss
new file mode 100644 (file)
index 0000000..d09d3a2
--- /dev/null
@@ -0,0 +1,24 @@
+//
+// Docs color palette classes
+//
+
+@each $color, $value in $colors {
+  .swatch-#{$color} {
+    background-color: #{$value};
+    @include color-yiq($value);
+  }
+}
+
+@each $color, $value in $theme-colors {
+  .swatch-#{$color} {
+    background-color: #{$value};
+    @include color-yiq($value);
+  }
+}
+
+@each $color, $value in $grays {
+  .swatch-#{$color} {
+    background-color: #{$value};
+    @include color-yiq($value);
+  }
+}
index 0991d5bdf6a40687d860e894d40b133746f809f9..6535c0ce11d7320edebe6f00bbec6547d14480f3 100644 (file)
@@ -10,7 +10,7 @@
 //
 // Background information on nomenclature and architecture decisions here.
 //
-// - Bootstrap variables and mixins are included for easy reuse.
+// - Bootstrap functions, variables, and mixins are included for easy reuse.
 //   Doing so gives us access to the same core utilities provided by Bootstrap.
 //   For example, consistent media queries through those mixins.
 //
@@ -48,6 +48,7 @@
 @import "team";
 @import "browser-bugs";
 @import "brand";
+@import "colors";
 @import "clipboard-js";
 
 // Load docs dependencies