con

[ASAP] Glycans Meet Sphingolipids: Structure-Based Design of Glycan Containing Analogues of a Sphingosine Kinase Inhibitor

ACS Medicinal Chemistry Letters
DOI: 10.1021/acsmedchemlett.9b00665




con

[ASAP] Synthesis of Novel G Factor or Chloroquine-Artemisinin Hybrids and Conjugates with Potent Antiplasmodial Activity

ACS Medicinal Chemistry Letters
DOI: 10.1021/acsmedchemlett.9b00669




con

[ASAP] Design, Synthesis, and Pharmacological Evaluation of Second Generation EZH2 Inhibitors with Long Residence Time

ACS Medicinal Chemistry Letters
DOI: 10.1021/acsmedchemlett.0c00045




con

[ASAP] Design and Synthesis of Tetrazole- and Pyridine-Containing Itraconazole Analogs as Potent Angiogenesis Inhibitors

ACS Medicinal Chemistry Letters
DOI: 10.1021/acsmedchemlett.9b00438




con

Tanzania turns to solar power to increase electricity connectivity

As many as 60 percent of the Kenyan population now has access to electricity according to official data. But in neighbouring Tanzania, the penetration rate is less than half of that and sparsely populated rural communities are especially neglected.  

The post Tanzania turns to solar power to increase electricity connectivity appeared first on LatestSolarNews.




con

Construction has started on the largest solar project in Nepal

The reports say that the constructions of a 25MW largest solar PV project in Nepal has begun. The foundation stone was laid last week at Devighat in Nuwakot by Minister for Energy, Water Resources and Irrigation, Barsha Man Pun. The government plans to finish the construction of the project in a year. As stated by …

The post Construction has started on the largest solar project in Nepal appeared first on LatestSolarNews.




con

Contextual styling with custom properties

Something I’ve been wanting for a long time, define different regions like a footer section, or side bar and not have to deal with all the contextual styling hassle. A.k.a. “Now that this button is used on a dark background, the button needs to change its colors too. Where should the styles live?”. Here an old post about struggling with contextual styling.

So then the other day I was doing some experiments with using custom properties for Atom’s UI. Turns out, using custom properties might make contextual styling a bit easier. For the rest of the post, let’s switch to a more simple example. A page where the main area is light, but then has a dark hero and footer section. Like this:

In the past, I probably would’ve created variations like Button--dark or overwrote it with header .Button {…}. Depends a bit on the project. Here another approach: Create themes with a set of variables, then apply the theme to the different areas.

1. Default theme

First let’s define our default theme with a bunch of variables.

[data-theme="default"] {
  --fg:         hsl(0,0%,25%);
  --border:     hsl(0,0%,75%);
  
  --bg:         hsl(0,0%,95%);
  --button-bg:  hsl(0,0%,99%);
  --input-bg:   hsl(0,0%,90%);
}

Then we create some components where we use the variables defined above.

[data-theme] {
  color: var(--fg);
  background-color: var(--bg);
}

.Button {
  color: var(--fg);
  border: 1px solid var(--border);
  background-color: var(--button-bg);
}

.Input {
  color: var(--fg);
  border: 1px solid var(--border);
  background-color: var(--input-bg);
}

And lastly we add the [data-theme="default"] attribute on the body so that our components will pick up the variables.

<body data-theme="default">

If you wonder why use data-theme attributes over classes? Well, no specific reason. Maybe with attributes, it’s a hint that only one theme should be used per element and is more separated from your other classes.

At this point we get this:

See the Pen Contextual styling with custom properties (1/3) by simurai (@simurai) on CodePen.

2. Dark theme

But our designer wants the hero and footer to be dark. Alright, let’s define another theme region.

[data-theme="dark"] {
  --fg:         hsl(0,10%,70%);
  --border:     hsl(0,10%,10%);
  
  --bg:         hsl(0,0%,20%);
  --button-bg:  hsl(0,0%,25%);
  --input-bg:   hsl(0,0%,15%);
}

And add the theme attribute to the header and footer.

<header data-theme="dark">
<footer data-theme="dark">

Which gives us this:

See the Pen Contextual styling with custom properties (2/3) by simurai (@simurai) on CodePen.

The reason why this works is that custom properties cascade and can be overridden on nested elements, just like normal properties.

3. Hero theme

A few months pass and our designer comes back with a redesigned hero section. “To make it look fresh” with a splash of color.

No problem! Just like with the dark theme, we define a new “hero” theme.

[data-theme="hero"] {
  --fg:         hsl(240,50%,90%);
  --border:     hsl(240,50%,10%);
  
  --bg:         hsl(240,33%,30%);
  --button-bg:  hsl(240,33%,40%);
  --input-bg:   hsl(240,33%,20%);
}
<header data-theme="hero">

And here is that fresh hero:

See the Pen Contextual styling with custom properties (3/3) by simurai (@simurai) on CodePen.

It’s also not limited to colors only, could be used for sizes, fonts or anything that makes sense to define as variables.

Benefits

Using these theme “regions” lets your components stay context un-aware and you can use them in multiple themes. Even on the same page.

  • Developers can add components, move components around, without having to know about in what context (theme) they live. The markup for the components stays the same.
  • Design systems authors can create new components without worrying about where they get used, the variables used in components stay the same.
  • Designers can define new theme regions, or change existing ones, without having to make changes to a component’s HTML or CSS, it stays the same.

Less time to talk about who, how and where, more time to talk about the weather. ☔️????

Concerns

Yeah, right. The big question: But does it scale? Can this be used for all use cases.

Ok, I’m pretty sure it doesn’t fit all situations. There are just too many to find a single solution for them all. And I’m actually not sure how well it scales. I guess it works great in these simple demos, but I have yet to find a larger project to test it on. So if you have used (or plan to use) this approach, I’m curious to know how it went.

A concern I can imagine is that the list of variables might grow quickly if themes have totally different characteristics. Like not just a bit darker or lighter backgrounds. Then you might need to have foreground and border colors for each component (or group of components) and can’t just use the general --fg and --border variables. Naming these variables is probably the hardest part.

Update I

@giuseppegurgone made an interesting comment:

in suitcss projects I used to define component level custom props, theme variables and then create themes by mapping the former to the latter suitcss-toolkit

So if I understood it correctly, by mapping theme variables to component variables, you could avoid your theme variables from growing too much and you can decide for each component how to use these theme variables.

Update II

If it’s too early to use custom properties in your project, @szalonna posted an example how to do something similar in SCSS.




con

The matter of photography in the Americas / Natalia Brizuela and Jodi Roberts ; with contributions by Lisa Blackmore, Amy Sara Carroll, Marianela D'Aprile, María Fernanda Domínguez, Heloisa Espada, Rachel Price, Diana Ruiz, Tatiane Santa Ro

Rotch Library - TR184.B75 2018




con

Design: the key concepts / D.J. Huppatz

Barker Library - NK1510.H87 2019




con

Legacy of the masters: painting and calligraphy of the Islamic world from the Shavleyan family collection / Will Kwiatkowski ; with contributions by John Seyller

Rotch Library - N6260.K87 2019




con

Leonardo da Vinci: nature and architecture / edited by Constance Moffatt, Sara Taglialagamba

Rotch Library - N6923.L33 M64 2019




con

Inventing Boston: design, production, and consumption / Edward S. Cooke, Jr

Rotch Library - NK838.B67 C66 2019




con

Fields of fungus and sunflowers / [edited and designed by Tammy Nguyen ; contributions by Lovely Umayam and Adriel Luis]

Rotch Library - N7433.35.U6 M37 no.6




con

Altered states: Substanzen in der zeitgenössischen Kunst = substances in contemporary art / herausgegeben von = edited by Milena Mercer ; Texte = texts, Max Daly ... [and thirteen others]

Rotch Library - N8251.S555 A48 2018




con

Exercises in freedom: polnische Konzeptkunst, 1968-1981 = Polish conceptualism, 1968-1981 / Herausgeber = editor, Staatliche Kunstsammlungen Dresden, Kupferstich-Kabinett, Björn Egging

Rotch Library - N7255.P6 E88 2018




con

Unfinished conversations on the weight of absence: Belu-Simion Făinaru, Dan Mihălțianu, Miklós Onucsán / curator, Cristian Nae

Rotch Library - N6488.I8 V433 2019 R6




con

My dearest Aiyana / [contributors, Daniil Davydoff, Naima Green, and Tuan Andrew Nguyen ; edited by Tammy Nguen]

Rotch Library - N7433.35.U6 M37 no.7




con

T.C. Cannon: at the edge of America / edited by Karen Kramer ; with contributions by heather ahtone, Sherwin Bitsui, Caitlin Cooper, Frank Buffalo Hyde, Trevor Fairbrother, Santee Frazier, Joy Harjo, Joan Naviyuk Kane, Karen Kramer, Deana McCloud, America

Rotch Library - NX512.C36 A4 2018




con

Conversation pieces: the world of Bruegel / Abdelkader Benali, Alexandra van Dongen, Katrien Lichtert, Sabine Pénot, Lucinda Timmermans ; translation, Patrick Lennon, Michael Lomax

Rotch Library - ND673.B73 B46 2018




con

Photography reframed: new visions in contemporary photographic culture / edited by Ben Burbridge and Annebella Pollen

Rotch Library - TR185.P52 2018




con

Julian Charrière: second suns / edited by Nadim Samman

Rotch Library - N7153.C465 A4 2018




con

Modernists & mavericks: Bacon, Freud, Hockney & the London painters / Martin Gayford

Rotch Library - ND470.G39 2018




con

Model as painting / Pieter Schoolwerth ; contributors, Pieter Schoolwerth, David Geers, Molly Warnock ; editor: Katherine Pickard

Rotch Library - N6537.S3589 A4 2019




con

Mary Corse: a survey in light / Kim Conaty ; with contributions from Robin Clark, Michael Govan, Alexis Lowry, and David Reed

Rotch Library - N6537.C663 A4 2018




con

The art of return: the sixties & contemporary culture / James Meyer

Rotch Library - N6512.M479 2019




con

Bestowing beauty: masterpieces from Persian lands-selections from the Hossein Afshar collection / edited by Aimée Froom ; with essays by Walter B. Denny, Aimée Froom, Melanie Gibson, and David J. Roxburgh; and contributions by Robert Hillenbrand

Rotch Library - N7280.B47 2019




con

Arabicity: contemporary Arab art / edited by Rose Issa and Juliet Cestar ; contributions by Rose Issa, Georges Corm, Michket Krifa, Etel Adnan

Rotch Library - N7265.3.A733 2019




con

Shirin Neshat: I will greet the sun again / organized by Ed Schad ; Shirin Neshat in conversation with Glenn Lowry ; with essays by Godfrey Cheshire, Layla S. Diba, Farzaneh Milani, and Ed Schad

Rotch Library - TR647.N4454 2019




con

Conservation of modern oil paintings / Klaas Jan van den Berg [and 7 others], editors

Online Resource




con

London art worlds: mobile, contingent, and ephemeral networks, 1960-1980 / edited by Jo Applin, Catherine Spencer, and Amy Tobin

Rotch Library - N6770.L6495 2018




con

Gauguin: portraits / edited by Cornelia Homburg, Christopher Riopelle ; with contributions by Elizabeth C. Childs [and five others]

Rotch Library - ND553.G27 A4 2019




con

Constructing imperial Berlin: photography and the metropolis / Miriam Paeslack

Rotch Library - TR74.B47 P34 2019




con

Experimental Beijing: gender and globalization in Chinese contemporary art / Sasha Su-Ling Welland

Rotch Library - N7345.6.W46 2018




con

Proceedings of the 2nd International and Interdisciplinary Conference on Image and Imagination: IMG 2019 / Enrico Cicalò, editor

Online Resource




con

Shifting grounds: landscape in contemporary Native American art / Kate Morris

Rotch Library - N8213.M696 2019




con

Modernism on the Nile: art in Egypt between the Islamic and the contemporary / Alex Dika Seggerman

Rotch Library - N7381.7.S44 2019




con

A fragile inheritance: radical stakes in contemporary Indian art / Saloni Mathur

Rotch Library - N7304.M384 2019




con

Where is adaptation?: mapping cultures, texts, and contexts / edited by Casie Hermansson, Janet Zepernick, Pittsburg State University

Hayden Library - NX161.W54 2018




con

Designs for different futures / Kathryn B. Hiesinger & Michelle Millar Fisher, Emmet Byrne, Maite Borjabad López-Pastor & Zoë Ryan ; with Andrew Blauvelt, Colin Fanning, and Orkan Telhan ; contributions by Juliana Rowen Barton [and 24 o

Rotch Library - NK1397.D483 2019




con

Last Maori Wars : two accounts of the conflicts in new zealand during the 1860s-the last maori war... in new zealand with a sketch of the new zealand war.

Whitmore George S author




con

Follow the signs [electronic resource] : archetypes of consciousness embodied in the signs of language / Rodney B. Sangster.

Sangster, Rodney B., 1942- author.




con

The counterpunch (and other horizontal poems) = El contragolpe (y otros poemas horizontales) / Juan Carlos Flores ; translated by Kristin Dykstra

Hayden Library - PQ7390.F459 C6613 2016




con

Afro-Mexican constructions of diaspora, gender, identity and nation / Paulette A. Ramsay

Hayden Library - PQ7081.7.B55 R36 2016




con

Bolaño: a biography in conversations / Monica Maristain ; translated by Kit Maude

Hayden Library - PQ8098.12.O38 Z74513 2014




con

Absolute solitude: selected prose poems / Dulce María Loynaz ; translated from the Spanish by James O'Connor

Hayden Library - PQ7389.L78 A2 2016




con

Breach of trust: Abuso de confianza / Angel Escobar ; translated by Kristin Dykstra

Hayden Library - PQ7390.E786 A2 2016




con

Selected works: a new translation, contexts, critical traditions / Sor Juana Inés de la Cruz ; translated by Edith Grossman ; edited by Anna More

Hayden Library - PQ7296.J6 A6 2016




con

Masquerade and social justice in contemporary Latin American fiction / Helene Carol Weldt-Basson

Hayden Library - PQ7082.N7 W43 2017




con

Nietzsche on his balcony: a novel / Carlos Fuentes ; translated from the Mexican Spanish by Ethan Shaskan Bumas and Alejandro Branger

Hayden Library - PQ7217.F793 F4313 2016




con

Postnational perspectives on contemporary Hispanic literature / edited by Heike Scharm and Natalia Matta Jara

Hayden Library - PQ7081.S318 2017