Use Pico.css for pleasant out-of-the-box styling
parent
8f7628fb98
commit
c90a10f172
@ -1,9 +0,0 @@
|
||||
@use "./mixins/typography";
|
||||
|
||||
@import "./colors";
|
||||
|
||||
body {
|
||||
@include typography.body;
|
||||
background-color: var(--white);
|
||||
color: var(--black);
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
@use "sass:color";
|
||||
|
||||
// This starter palette is courtesy of https://github.com/mrmrs/colors (MIT license)
|
||||
:root {
|
||||
// == cool =======
|
||||
--aqua: #7fdbff;
|
||||
--blue: #0074d9;
|
||||
--navy: #001f3f;
|
||||
--teal: #39cccc;
|
||||
--green: #2ecc40;
|
||||
--olive: #3d9970;
|
||||
--lime: #01ff70;
|
||||
// == warm =======
|
||||
--yellow: #ffdc00;
|
||||
--orange: #ff851b;
|
||||
--red: #ff4136;
|
||||
--fuchsia: #f012be;
|
||||
--purple: #b10dc9;
|
||||
--maroon: #85144b;
|
||||
// == gray =======
|
||||
--white: #ffffff;
|
||||
--silver: #dddddd;
|
||||
--gray: #aaaaaa;
|
||||
--black: #111111;
|
||||
--black-transparent: #{color.adjust(#111, $alpha: -0.9)};
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
$font-sans-serif: -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
|
||||
// Type scale:
|
||||
// 12, 14, 16, 18, 20, 24, 30, 36, 48, 60, 72px
|
||||
|
||||
@mixin body {
|
||||
font-family: $font-sans-serif;
|
||||
font-size: 16px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
@mixin headline {
|
||||
font-family: $font-sans-serif;
|
||||
font-size: 24px;
|
||||
line-height: 1;
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
if options[:css] == "sass"
|
||||
empty_directory_with_keep_file "app/assets/fonts"
|
||||
empty_directory "app/assets/stylesheets/mixins"
|
||||
copy_file "app/assets/stylesheets/colors.scss"
|
||||
copy_file "app/assets/stylesheets/application.sass.scss", force: true
|
||||
copy_file "app/assets/stylesheets/mixins/typography.scss"
|
||||
end
|
@ -0,0 +1,6 @@
|
||||
@import "@picocss/pico";
|
||||
|
||||
// Uncomment this to disable Pico's responsive sizing and instead respect the user's browser font size setting
|
||||
// :root {
|
||||
// --font-size: revert;
|
||||
// }
|
Loading…
Reference in New Issue