Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. # color-named
  2. Require (where possible) or disallow named colors.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { color: black }
  6. /** ↑
  7. * This named color */
  8. ```
  9. This rule ignores `$sass` and `@less` variable syntaxes.
  10. ## Options
  11. `string`: `"always-where-possible"|"never"`
  12. ### `"always-where-possible"`
  13. Colors _must always_, where possible, be named.
  14. This will complain if a hex (3, 4, 6 and 8 digit), `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()` or `gray()` color can be represented as a named color.
  15. The following patterns are considered violations:
  16. <!-- prettier-ignore -->
  17. ```css
  18. a { color: #000; }
  19. ```
  20. <!-- prettier-ignore -->
  21. ```css
  22. a { color: #f000; }
  23. ```
  24. <!-- prettier-ignore -->
  25. ```css
  26. a { color: #ff000000; }
  27. ```
  28. <!-- prettier-ignore -->
  29. ```css
  30. a { color: rgb(0, 0, 0); }
  31. ```
  32. <!-- prettier-ignore -->
  33. ```css
  34. a { color: rgb(0%, 0%, 0%); }
  35. ```
  36. <!-- prettier-ignore -->
  37. ```css
  38. a { color: rgba(0, 0, 0, 0); }
  39. ```
  40. <!-- prettier-ignore -->
  41. ```css
  42. a { color: hsl(0, 0%, 0%); }
  43. ```
  44. <!-- prettier-ignore -->
  45. ```css
  46. a { color: hwb(0, 0%, 100%); }
  47. ```
  48. <!-- prettier-ignore -->
  49. ```css
  50. a { color: gray(0); }
  51. ```
  52. The following patterns are _not_ considered violations:
  53. <!-- prettier-ignore -->
  54. ```css
  55. a { color: black; }
  56. ```
  57. <!-- prettier-ignore -->
  58. ```css
  59. a { color: rgb(10, 0, 0); }
  60. ```
  61. <!-- prettier-ignore -->
  62. ```css
  63. a { color: rgb(0, 0, 0, 0.5); }
  64. ```
  65. ### `"never"`
  66. Colors _must never_ be named.
  67. The following patterns are considered violations:
  68. <!-- prettier-ignore -->
  69. ```css
  70. a { color: black; }
  71. ```
  72. <!-- prettier-ignore -->
  73. ```css
  74. a { color: white; }
  75. ```
  76. The following patterns are _not_ considered violations:
  77. <!-- prettier-ignore -->
  78. ```css
  79. a { color: #000; }
  80. ```
  81. <!-- prettier-ignore -->
  82. ```css
  83. a { color: rgb(0, 0, 0); }
  84. ```
  85. <!-- prettier-ignore -->
  86. ```css
  87. a { color: var(--white); }
  88. ```
  89. ## Optional secondary options
  90. ### `ignore: ["inside-function"]`
  91. Ignore colors that are inside a function.
  92. For example, with `"never"`.
  93. The following patterns are _not_ considered violations:
  94. <!-- prettier-ignore -->
  95. ```css
  96. a {
  97. color: map-get($colour, blue);
  98. }
  99. ```
  100. <!-- prettier-ignore -->
  101. ```css
  102. a {
  103. background-image: url(red);
  104. }
  105. ```
  106. ### `ignoreProperties: ["/regex/", /regex/, "string"]`
  107. For example with `"never"`.
  108. Given:
  109. ```
  110. ["/^my-/", "composes"]
  111. ```
  112. The following patterns are _not_ considered violations:
  113. <!-- prettier-ignore -->
  114. ```css
  115. a {
  116. my-property: red;
  117. }
  118. ```
  119. <!-- prettier-ignore -->
  120. ```css
  121. a {
  122. my-other-property: red;
  123. }
  124. ```
  125. <!-- prettier-ignore -->
  126. ```css
  127. a {
  128. composes: red from './index.css';
  129. }
  130. ```