LunarikoCSS
Simple CSS libraryAbout.
When I was trying to use mainstream css frameworks, I had a weird feeling about adding rather large amounts of code for my simple web-projects. After getting lost in documentation while being confused why something doesn't appear as I expected, I felt the need to understand how everything works from the ground up. This is my attempt to make reusable, modular styles and give my projects a unique view.
Some ideas I am trying out:- Stylizing general elements. No need for .a and .button classes.
- Using var for on-the-fly theming capabilities.
- Trying to minimize the use of javascript.
Components
Buttons
Write stories Start nowCards
Rather long description of a simple card item
Rather long description of a simple card item
Rather long description of a simple card item
Rather long description of a simple card item
Rather long description of a simple card item
Tabs
- Item 1 ×
- Item 2 ×
- Item 3 ×
- +
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
- Sunday
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
- Sunday
- Item 1×
- Item 2×
- Item 3×
- +
Misc.
contrast formula:
function luminanace(r, g, b) {
var a = [r, g, b].map(function (v) {
v /= 255;
return v <= 0.03928 ? v / 12.92 : Math.pow( (v + 0.055) / 1.055, 2.4 );
});
return a[0] * 0.2126 + a[1] * 0.7152 + a[2] * 0.0722;
}
function contrast(rgb1, rgb2) {
var lum1=luminanace(rgb1[0], rgb1[1], rgb1[2]);
var lum2=luminanace(rgb2[0], rgb2[1], rgb2[2]);
var brightest=Math.max(lum1, lum2);
var darkest=Math.min(lum1, lum2);
return (brightest + 0.05) / (darkest + 0.05);
}
Bookmarks
- Related to this library:
- Rust programming language:
- QA-related:
- Programming in general: