Compare commits

...

57 Commits

Author SHA1 Message Date
e3dfaf3680 Update base.css 2025-02-12 14:22:14 +00:00
16ae126308 create alwaysdark module 2024-12-25 19:40:43 +00:00
de85c23805 create dotgrid module 2024-12-25 19:10:55 +00:00
21187be0b6 update colors/contrast 2024-04-12 17:30:53 +01:00
7db24ea730 update fonts css 2024-02-29 12:29:10 +00:00
7e823484b0 add comic mono font 2024-02-29 12:15:58 +00:00
3e93cc7ffb update foreground color on placeholders, inputs, selects, buttons 2023-11-09 13:43:43 +00:00
9634b3958f add input, select, button styling 2023-11-05 15:36:18 +00:00
31277ed144 add missing quotations 2023-02-11 20:14:12 +00:00
a347aedd0f add readme.txt 2023-02-11 20:10:33 +00:00
b2dd3b075c add fonts 2023-02-11 20:06:03 +00:00
6b6af5f505 minor default background colors tweaks 2023-02-09 14:33:07 +00:00
5ebcbf6362 add search result padding 2023-02-01 18:30:44 +00:00
82517eda04 update search to have searchSmallText class 2023-02-01 13:46:15 +00:00
ca58ef6639 fix mistake in modules/readmes/search.txt 2023-02-01 13:43:34 +00:00
70ee222886 custom scrollbar code 2022-04-14 19:47:50 +01:00
4061fdd9be switch more colors over to variables 2022-04-14 19:31:39 +01:00
27d832b244 use variables in soft_media module 2022-04-14 16:15:42 +01:00
f0795da618 use opacity code in soft_media module 2022-04-14 16:09:59 +01:00
22ab71170b add soft_media module 2022-04-14 16:02:23 +01:00
f6ee2cf09d remove colors symlink 2022-04-13 18:14:03 +01:00
b10387392a update rainbow.txt 2022-04-13 18:08:16 +01:00
8fb62b291d ignore custom light value for lightmode in darkmode 2022-04-13 18:00:50 +01:00
c7465706c4 update readmes, documenation, and expose more colors in colors 2022-04-13 17:55:16 +01:00
6143411d69 correct base16 color name 2022-04-13 17:35:30 +01:00
f99ba417cf update readme 2022-04-13 17:29:22 +01:00
c4264eb362 move colorschemes out of modules folder, symlink into modules folder for compatibility 2022-04-13 17:28:29 +01:00
3709c37527 remove gruvbox dependencies in base.css and rainbow.css 2022-04-13 17:21:15 +01:00
3f21f7152b update readme 2022-04-13 17:15:02 +01:00
ae9ce73739 new colorscheme picking 2022-04-13 17:09:20 +01:00
a8f04a0b18 fix buttonlist hover color change 2022-04-13 03:14:11 +01:00
0a3b787cb6 make light mode styling not yellow 2022-04-13 03:05:45 +01:00
bb6d68a997 update readme 2022-04-13 02:45:08 +01:00
980ffad386 use gruvbox colors by default 2022-04-13 02:39:09 +01:00
5fb31f11e6 link to repos for colors 2022-04-13 02:30:01 +01:00
a79d025d10 fix darkmode always applying when module loaded 2022-04-13 02:23:45 +01:00
f55b4f164b add base16 colors 2022-04-13 01:22:54 +01:00
944c2a9855 move gruvbox module into colors 2022-04-13 01:14:21 +01:00
660ff76632 minor change in rainbow 2022-04-13 01:07:24 +01:00
4c2405a1cb maybe really fix rainbow css 2022-04-13 01:06:33 +01:00
b168c5bce3 maybe fix rainbow css 2022-04-13 01:00:15 +01:00
249821fa46 add modules gruvbox, rainbow 2022-04-13 00:52:43 +01:00
0c1f593312 more kbd bs 2022-04-12 18:12:06 +01:00
9e9865a817 update kbd tag 2022-04-12 18:06:44 +01:00
e0ba4ff3fd update buttonlist to support darkmode (hopefully) 2022-04-12 18:03:53 +01:00
b9555d63d3 move readmes to own folder 2022-04-12 17:28:54 +01:00
291346f98a move readmes 2022-04-12 17:27:47 +01:00
a8ce56dc16 move readme 2022-04-12 17:24:45 +01:00
51b024f50a update readmes 2022-04-12 17:23:43 +01:00
af0a758eb9 simplify dark mode implementation 2022-04-12 17:22:02 +01:00
1237d953b5 add basic module readmes 2022-04-12 17:16:01 +01:00
b5be196dd9 move darkmode to a module 2022-04-12 17:01:14 +01:00
ddfde7ccd8 more dark mode stuff 2022-04-12 16:43:24 +01:00
8b8ddd45dd add dark mode css 2022-04-12 16:30:51 +01:00
b0fbf0c0d4 monospace 2022-04-12 04:58:41 +01:00
09ffeefa68 add search module 2022-04-03 21:59:04 +01:00
6da30f8bd9 update readme 2022-04-03 21:26:46 +01:00
75 changed files with 797 additions and 31 deletions

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "fonts/comic-mono-font"]
path = fonts/comic-mono-font
url = https://git.alv.cx/alvierahman90/comic-mono-font.git

View File

@@ -1,17 +1,30 @@
:root {
--light: var(--colorscheme-light);
--dark: var(--colorscheme-dark);
--fg: var(--dark);
--fg-lc: var(--colorscheme-dark-lighter);
--bg: var(--light);
--bg-lc: var(--colorscheme-light-darker);
--body-max-width: 800px;
--font-size: 16px;
}
body { body {
font-family: "Open Sans", sans-serif; font-family: monospace, sans-serif;
color: #454545; color: var(--fg);
font-size: 16px; font-size: var(--font-size);
margin: 2em auto; margin: 2em auto;
max-width: 800px; max-width: var(--body-max-width);
padding: 1em; padding: 1em;
line-height: 1.4; line-height: 1.4;
overflow-wrap: break-word; overflow-wrap: break-word;
background-color: #fefefe; background-color: var(--bg);
} }
a { color: #07a; } a { color: var(--blue); }
a:visited { color: #941352; } a:visited { color: var(--purple); }
.tableWrapper { .tableWrapper {
max-width: 100%; max-width: 100%;
@@ -26,20 +39,19 @@ table {
th, td { th, td {
padding: 1em; padding: 1em;
border: 1px solid #454545; border: 1px solid var(--fg-lc);
margin: 0; margin: 0;
} }
pre { pre {
padding: 1em; padding: 1em;
overflow: scroll; overflow: scroll;
} }
code, pre{ code, pre{
background-color: #d9d9d9 ; background-color: var(--light);
color: #000; color: var(--dark);
} }
@@ -58,7 +70,7 @@ li {
blockquote { blockquote {
border-left: 0.4em solid #454545; border-left: 0.4em solid var(--fg-lc);
margin-left: 0; margin-left: 0;
padding-left: 1em; padding-left: 1em;
padding-top: 0.5em; padding-top: 0.5em;
@@ -84,10 +96,44 @@ figcaption {
kbd { kbd {
background-color: #d9d9d9; color: var(--bg);
background-color: var(--fg-lc);
border-radius: 0.25em; border-radius: 0.25em;
padding: 0.2em; padding: 0.2em;
box-shadow: 0.15em 0.15em 0 #c9c9c9;
margin-left: 0.2em; margin-left: 0.2em;
margin-right: 0.2em; margin-right: 0.2em;
} }
input, select, button {
color: var(--fg-lc);
background: var(--bg);
border: 1px solid var(--fg);
border-radius: 0.5em;
padding: 0.5em;
margin: 0.5em;
}
::placeholder {
color: var(--fg-lc);
}
/* scrollbar */
::-webkit-scrollbar {
width: 1em;
}
::-webkit-scrollbar-track {
box-shadow: none;
border-radius: 0px;
background-color: var(--bg);
}
::-webkit-scrollbar-thumb {
background: var(--fg-lc);
border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--fg);
}

24
colors.txt Normal file
View File

@@ -0,0 +1,24 @@
in the css
@import url("https://styles.alv.cx/colors/<colorscheme>.css");
and use the variables created in the file
the following colors will be available to use with all colorschemes (useful for
switching between colorschemes easily)
--orange
--red
--green
--yellow
--blue
--purple
--colorscheme-light
--colorscheme-light-darker
--colorscheme-dark
--colorscheme-dark-lighter
colorschemes also have their own custom colors inside, which can be used if
switching themes is not a concern.

43
colors/base16-default.css Normal file
View File

@@ -0,0 +1,43 @@
/* colors from https://github.com/chriskempson/base16 */
:root {
--base16-base00: #181818; /* default background */
--base16-base01: #282828; /* lighter background */
--base16-base02: #383838; /* selection background */
--base16-base03: #585858; /* comments, invisibles, line highlighting */
--base16-base04: #b8b8b8; /* dark foreground */
--base16-base05: #d8d8d8; /* default foreground, caret, delimiters, operators */
--base16-base06: #e8e8e8; /* light foreground (not often used) */
--base16-base07: #f8f8f8; /* light foreground (not often used) */
--base16-base08: #ab4642; /* variables, xml tags, markup link text, markup lists, diff deleted */
--base16-base09: #dc9656; /* integers, boolean, constants, xml attributes, markup link url */
--base16-base0A: #f7ca88; /* classes, markup bold, search text background */
--base16-base0B: #a1b56c; /* strings, inherited class, markup code, diff inserted */
--base16-base0C: #86c1b9; /* support, regular expressions, excape characters, markup quotes */
--base16-base0D: #7cafc2; /* functions, methods, attribute IDs, headings */
--base16-base0E: #ba8baf; /* keywords, storage selector, markup italic, diff changed */
--base16-base0F: #a16946; /* deprecated, opening/closing embedded language tags, e.g. <?php ?> */
--base16-bg: var(--base16-base00);
--base16-fg: var(--base16-base05);
--base16-red: var(--base16-base08);
--base16-orange: var(--base16-base09);
--base16-yellow: var(--base16-base0A);
--base16-green: var(--base16-base0B);
--base16-teal: var(--base16-base0C);
--base16-blue: var(--base16-base0D);
--base16-purple: var(--base16-base0E);
--base16-brown: var(--base16-base0F);
--colorscheme-light: var(--base16-fg);
--colorscheme-light-darker: var(--base16-base04);
--colorscheme-dark: var(--base16-bg);
--colorscheme-dark-lighter: var(--base16-base01);
--orange: var(--base16-orange);
--red: var(--base16-red);
--green: var(--base16-green);
--yellow: var(--base16-yellow);
--blue: var(--base16-blue);
--purple: var(--base16-purple);
}

49
colors/gruvbox.css Normal file
View File

@@ -0,0 +1,49 @@
/* colors from https://github.com/morhetz/gruvbox */
:root {
--gruvbox-orange: #d65d0e;
--gruvbox-red: #cc242d;
--gruvbox-green: #98971a;
--gruvbox-yellow: #d79921;
--gruvbox-blue: #458588;
--gruvbox-purple: #b16286;
--gruvbox-aqua: #689d6a;
--gruvbox-orange-light: #fe8019;
--gruvbox-red-light: #fb4934;
--gruvbox-green-light: #b8bb26;
--gruvbox-yellow-light: #fabd2f;
--gruvbox-blue-light: #83a598;
--gruvbox-purple-light: #d3869b;
--gruvbox-aqua-light: #8ec07c;
--gruvbox-bg: #282828; /* default background */
--gruvbox-bg0_h: #1d2021; /* hard background */
--gruvbox-bg0_s: #32302f; /* soft background */
--gruvbox-bg0: #282828; /* same as bg */
--gruvbox-bg1: #3c3836;
--gruvbox-bg2: #504945;
--gruvbox-bg3: #665c54;
--gruvbox-bg4: #7c6f64;
--gruvbox-fg: #ebdbb2;
--gruvbox-fg0: #fbf1c7;
--gruvbox-fg1: #ebdbb2;
--gruvbox-fg2: #d5c4a1;
--gruvbox-fg3: #bdae93;
--gruvbox-fg4: #a89984;
--gruvbox-gray: #928374;
--colorscheme-light: var(--gruvbox-fg);
--colorscheme-light-darker: var(--gruvbox-fg4);
--colorscheme-dark: var(--gruvbox-bg);
--colorscheme-dark-lighter: var(--gruvbox-bg4);
--orange: var(--gruvbox-orange);
--red: var(--gruvbox-red);
--green: var(--gruvbox-green);
--yellow: var(--gruvbox-yellow);
--blue: var(--gruvbox-blue);
--purple: var(--gruvbox-purple);
--light: var(--gruvbox-fg);
--dark: var(--gruvbox-bg);
}

View File

@@ -0,0 +1,93 @@
Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

View File

@@ -0,0 +1,79 @@
Source Code Pro Variable Font
=============================
This download contains Source Code Pro as both variable fonts and static fonts.
Source Code Pro is a variable font with this axis:
wght
This means all the styles are contained in these files:
SourceCodePro-VariableFont_wght.ttf
SourceCodePro-Italic-VariableFont_wght.ttf
If your app fully supports variable fonts, you can now pick intermediate styles
that arent available as static fonts. Not all apps support variable fonts, and
in those cases you can use the static font files for Source Code Pro:
static/SourceCodePro-ExtraLight.ttf
static/SourceCodePro-Light.ttf
static/SourceCodePro-Regular.ttf
static/SourceCodePro-Medium.ttf
static/SourceCodePro-SemiBold.ttf
static/SourceCodePro-Bold.ttf
static/SourceCodePro-ExtraBold.ttf
static/SourceCodePro-Black.ttf
static/SourceCodePro-ExtraLightItalic.ttf
static/SourceCodePro-LightItalic.ttf
static/SourceCodePro-Italic.ttf
static/SourceCodePro-MediumItalic.ttf
static/SourceCodePro-SemiBoldItalic.ttf
static/SourceCodePro-BoldItalic.ttf
static/SourceCodePro-ExtraBoldItalic.ttf
static/SourceCodePro-BlackItalic.ttf
Get started
-----------
1. Install the font files you want to use
2. Use your app's font picker to view the font family and all the
available styles
Learn more about variable fonts
-------------------------------
https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
https://variablefonts.typenetwork.com
https://medium.com/variable-fonts
In desktop apps
https://theblog.adobe.com/can-variable-fonts-illustrator-cc
https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
Online
https://developers.google.com/fonts/docs/getting_started
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
Installing fonts
MacOS: https://support.apple.com/en-us/HT201749
Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
Android Apps
https://developers.google.com/fonts/docs/android
https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
License
-------
Please read the full license text (OFL.txt) to understand the permissions,
restrictions and requirements for usage, redistribution, and modification.
You can use them in your products & projects print or digital,
commercial or otherwise.
This isn't legal advice, please consider consulting a lawyer and see the full
license for all details.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,93 @@
Copyright 2010, 2012, 2014 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name Source.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,93 @@
Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

1
fonts/comic-mono-font Submodule

Submodule fonts/comic-mono-font added at 9a96d04cdd

12
fonts/comic-mono-font.css Normal file
View File

@@ -0,0 +1,12 @@
@font-face {
font-family: 'Comic Mono';
font-style: normal;
src: url('/fonts/comic-mono-font/ComicMono.ttf'), format('ttf');
}
@font-face {
font-family: 'Comic Mono';
font-style: normal;
font-weight: bold;
src: url('/fonts/comic-mono-font/ComicMono-Bold.ttf'), format('ttf');
}

View File

@@ -0,0 +1,15 @@
@import url("/fonts/source_code_pro.css");
@import url("/fonts/source_sans_pro.css");
@import url("/fonts/source_serif_pro.css");
body {
font-family: 'Source Sans Pro', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Source Serif Pro', serif;
}
code, pre {
font-family: 'Source Code Pro', monospace;
}

10
fonts/readme.txt Normal file
View File

@@ -0,0 +1,10 @@
styles.alv.cx/fonts
===================
alvficially approved fonts and pairings
font pairings set body, header, and code font-families and can be found in the folder /fonts/pairings
fonts can be loaded with
@import url("https://styles.alv.cx/fonts/<family.css");

13
fonts/source_code_pro.css Normal file
View File

@@ -0,0 +1,13 @@
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 400;
src: url('/fonts/Source_Code_Pro/SourceCodePro-VariableFont_wght.ttf') format('ttf');
}
@font-face {
font-family: 'Source Code Pro';
font-style: italic;
font-weight: 400;
src: url('/fonts/Source_Code_Pro/SourceCodePro-Italic-VariableFont_wght.ttf') format('ttf');
}

View File

@@ -0,0 +1,6 @@
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 400;
src: url('/fonts/Source_Sans_Pro/SourceSansPro-Regular.ttf') format('ttf');
}

View File

@@ -0,0 +1,6 @@
@font-face {
font-family: 'Source Serif Pro';
font-style: normal;
font-weight: 400;
src: url('/fonts/Source_Serif_Pro/SourceSerifPro-Regular.ttf') format('ttf');
}

View File

@@ -1,3 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
cd `dirname $0` cd `dirname $0`
git pull git pull
git submodule init
git submodule update

8
modules/alwaysdark.css Normal file
View File

@@ -0,0 +1,8 @@
@import url("https://styles.alv.cx/modules/soft_media.css");
:root {
--fg: var(--colorscheme-light);
--fg-lc: var(--colorscheme-light-darker);
--bg: var(--colorscheme-dark);
--bg-lc: var(--colorscheme-dark-lighter);
}

View File

@@ -1,5 +1,5 @@
.buttonlist { .buttonlist {
border-left: 1px solid #b3b3b3; border-left: 1px solid var(--fg-lc);
padding-left: 0.5em; padding-left: 0.5em;
margin-left: 0.5em; margin-left: 0.5em;
} }
@@ -10,12 +10,12 @@
} }
.buttonlist li a { .buttonlist li a {
color: #454545; color: var(--fg);
text-decoration: none; text-decoration: none;
width: 100%; width: 100%;
} }
.buttonlist li > * * { .buttonlist li > * * {
color: #454545; color: var(--fg);
width: 100%; width: 100%;
margin: 0; margin: 0;
padding: 0.75em; padding: 0.75em;
@@ -24,6 +24,7 @@
} }
.buttonlist li > a:hover * { .buttonlist li > a:hover * {
background: #d9d9d9; background: var(--bg);
color: black; color: var(--fg);
filter: brightness(0.75);
} }

1
modules/darkmode.css Normal file
View File

@@ -0,0 +1 @@
@import url("https://styles.alv.cx/modules/alwaysdark.css") screen and (prefers-color-scheme: dark);

5
modules/dotgrid.css Normal file
View File

@@ -0,0 +1,5 @@
body {
background-size: var(--dotgrid-size) var(--dotgrid-size);
background-image: radial-gradient(circle, var(--fg-lc) var(--dotgrid-dot-size), rgba(0, 0, 0, 0) 1px);
background-position: center;
}

15
modules/rainbow.css Normal file
View File

@@ -0,0 +1,15 @@
:root {
--rainbow-duration: 8s;
}
.rainbow { animation: rainbow-animation var(--rainbow-duration) infinite alternate; }
@keyframes rainbow-animation {
0% { color: var(--blue); }
16.7% { color: var(--green); }
33.3% { color: var(--yellow); }
50.0% { color: var(--orange); }
66.7% { color: var(--red); }
83.3% { color: var(--purple); }
100% { color: var(--blue); }
}

View File

@@ -0,0 +1,5 @@
in the css
@import url("https://styles.alv.cx/modules/alwaysdark.css");
puts the website always in dark mode, ignoring user preference.

View File

@@ -0,0 +1,23 @@
in the css
@import url("https://styles.alv.cx/modules/darkmode.css");
example:
<ul class="buttonlist">
<li>
<a href="link to whatever">
<p>text</p>
</a>
</li>
<li>
<a href="link to whatever2">
<p>text2</p>
</a>
</li>
<li>
<a href="link to whatever3">
<p>text3</p>
</a>
</li>
</ul>

View File

@@ -0,0 +1,3 @@
in the css
@import url("https://styles.alv.cx/modules/darkmode.css");

View File

@@ -0,0 +1,10 @@
in the css
@import url("https://styles.alv.cx/modules/dotgrid.css");
variables:
--dotgrid-size: 3em;
--dotgrid-dot-size: 1px;
puts a background image on the `body` element.

View File

@@ -0,0 +1,11 @@
in the css
@import url("https://styles.alv.cx/modules/rainbow.css");
variables:
--rainbow-duration: 8s;
and add the class `rainbow` to any element you want.
it works by changing the `color` property of the element.

View File

@@ -0,0 +1,13 @@
in the css
@import url("https://styles.alv.cx/modules/search.css");
example:
<div id="searchWrapper">
<input id="search" placeholder="Search">
</div>
<p class="searchSmallText" style="margin-top: 0; text-align: center">
Press (<kbd>Shift</kbd>+)<kbd>Enter</kbd> to open first result (in new tab)
</p>
<div id="results"> </div>

View File

@@ -0,0 +1,12 @@
in the css
@import url("https://styles.alv.cx/modules/soft_media.css");
variables:
--soft-media-opacity: 0.75;
--soft-media-transition-time: .5s;
--soft-media-transition-timing-function: ease-in-out;
this module makes reduces the opacity of all images to give the webpage a softer look,
even when in light mode (this is default behaviour in dark mode).

28
modules/search.css Normal file
View File

@@ -0,0 +1,28 @@
#searchWrapper > input {
padding: 1em;
margin: 1em 0.5em 1em 0.5em;
font-size: 1em;
min-width: 0;
}
#searchWrapper {
display: flex
}
#search { flex-grow: 9; }
#sidebar #search {
flex-grow: 0;
padding: 1em;
margin: 0 1em 1em 1em;
}
#searchResults {
overflow-x: scroll;
}
.searchSmallText {
font-size: 0.7em;
}
.searchResult { margin: 1em; }

13
modules/soft_media.css Normal file
View File

@@ -0,0 +1,13 @@
:root {
--soft-media-opacity: 0.75;
--soft-media-transition-time: .5s;
--soft-media-transition-timing-function: ease-in-out;
}
img, video {
opacity: var(--soft-media-opacity);
transition: opacity var(--soft-media-transition-time) var(--soft-media-transition-timing-function);
}
img:hover, video:hover {
opacity: 1;
}

12
readme
View File

@@ -1,12 +0,0 @@
styles.alv.cx
central styling repo and domain
to style a site, put this in a css file somewhere:
@import url("https://styles.alv.cx/base.css");
and any of these optional modules you want:
@import url("https://styles.alv.cx/modules/buttonlist.css");

42
readme.txt Normal file
View File

@@ -0,0 +1,42 @@
styles.alv.cx
=============
central styling repo and domain
to style a site:
1. put this at the top of a css file somewhere:
@import url("https://styles.alv.cx/colors/<colorscheme>.css");
@import url("https://styles.alv.cx/base.css");
replacing <colorscheme> with one of the options available at
`https://styles.alv.cx/colors`
2. add any of the optional modules you want.
3. a list of actively hosted modules can be seen in this repo in the modules folder
and at `https://styles.alv.cx/modules/`
variables and colors available
------------------------------
there are some variables you may want to use to keep your site's styling
consistent and you can view them in the `:root` section of `base.css` and any
module you use.
the variables defined in `base.css` are:
--fg
--bg
--light
--dark
you should prefer to use `--fg` and `--bg` over `--light` and `--dark` as that
will take of dark mode switching for you.
every colorscheme will have a standard set of variables, which can be viewed at
`https://styles.alv.cx/colors.txt` .
some modules may have variables which can be adjusted also, such as `rainbow.css`.