Closed tangjeff0 closed 4 years ago
confirmation-color
rather than green
) per @shanberg's recommendation (+blue-bg)
vs a CSS class like .blue-bg
(https://github.com/athensresearch/athens/commit/4d0b5454c8aaba5df097e6019df5204fce88b9d3#r39553790)font-weight
is getting overridded by DevCards CSS, so the types are not 1:1 with Figma, but removing and re-implementing DevCards CSS is a separate standalone issue.+1 one semantic names. I think things like green
can be used internally (in the style.cljs file for instance). Maybe the designers can make some examples of how the html would be structured ideally. As developers, we can see how we could make this work for them? I think we can make everyone happy
lein prod
should build CLJS bundle for DevCards as wellOpacity of highlight is 0.2, but the closest color ramp to that is 0.25. @jacobmorse
@tangjeff0 You're not actually supposed to hold us to the system. Just kidding — I overlooked that discrepancy. I think we can actually push it down to 0.1. I'd prefer it be more subtle.
Latest check-in
panel
doesn't include border as it does in the Figma style guide. Doesn't need to, though. Trivially easy to implement a +panel
class in a later PR.0.2em
for margin top and margin bottom for headers. Not sure if that works@tangjeff0 @jacobmorse On breakpoints, from an earlier discussion:
I'm thinking we should describe the min/max-widths of the main content column, secondary content column, and expanded nav, and then a breakpoint will emerge whenever the text feels too cramped. I prefer that at least over picking favorite browser sizes and baking that into a system.
I agree, with the possible exception of the Nav sidebar, which I think should be fixed width.
Downhill Tasks (good for contributors)
Sorted easiest to hardest (as I perceive)
+box-shadow-X
functions like [here].(https://github.com/athensresearch/athens/blob/master/src/cljs/athens/style.cljs#L45-L46)Colors & Opacities
06-08-18 Edit: @shanberg found
stylefy
lib and is refactoring relevant code in #136. This solves inline pseudoselectors, but not the opacity abstraction out of the box.Problem
0.1, 0.25, 0.5, 0.75, 1
+primary-.1
+secondary-.5
+warning-bg-.75
...with-styles
also generates a style map, e.g.{:style {:key "val"}}
. But oftentimes these different shades/opacities happen on thehover
pseudoselector, which cannot be supplied through inline styles the way we've been doing withwith-styles
.Solution?
style-guide-css
Design Language / Style Guide: