From 586599108f3b2bde4b739c2b186e9bb705ad0278 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Tue, 27 Jun 2017 22:59:33 +0800 Subject: Add Colors utilities #205 --- src/utilities/colors.less | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/utilities/colors.less (limited to 'src/utilities/colors.less') diff --git a/src/utilities/colors.less b/src/utilities/colors.less new file mode 100644 index 0000000..6a2691a --- /dev/null +++ b/src/utilities/colors.less @@ -0,0 +1,45 @@ +// Text colors +.text-primary { + .text-color-variant(@primary-color); +} +.text-secondary { + .text-color-variant(@secondary-color); +} +.text-gray { + .text-color-variant(@gray-color); +} +.text-light { + .text-color-variant(@light-color); +} +.text-success { + .text-color-variant(@control-color-success); +} +.text-warning { + .text-color-variant(@control-color-warning); +} +.text-error { + .text-color-variant(@control-color-error); +} + +// Background colors +.bg-primary { + .bg-color-variant(@primary-color); +} +.bg-secondary { + .bg-color-variant(@secondary-color); +} +.bg-dark { + .bg-color-variant(@dark-color); +} +.bg-gray { + .bg-color-variant(@bg-color); +} +.bg-success { + .bg-color-variant(@control-color-success); +} +.bg-warning { + .bg-color-variant(@control-color-warning); +} +.bg-error { + .bg-color-variant(@control-color-error); +} -- cgit v1.3.1-26-gb76a