Is Rajini just a southern star?
Rupee turns flat at 84.07 against U.S. dollar in early trade
At the interbank foreign exchange, the rupee opened at 84.07 against the greenback and traded on a flat note in early deals
Rupee turns flat at 84.07 against U.S. dollar in early trade
The rupee remains flat against the dollar amid oil prices, foreign fund withdrawals, and market
Rupee turns flat at 84.07 against US dollar in early trade
Forex traders said, the indication of some recovery in domestic equity markets prevented the fall in the local unit.
IndusInd Bank shares plunge 17%; Mcap erodes by ₹15,572 crore amid disappointing earnings
Total income rose to ₹14,871 crore in the quarter under review, from ₹13,530 crore in the same period a year ago, IndusInd Bank said in a regulatory filing
Equity investors poorer by ₹7.15 lakh crore in morning trade as markets slump
IndusInd Bank led the fall, while Mahindra & Mahindra, NTPC, Larsen & Toubro, Adani Ports, Titan, Tata Steel and JSW Steel were also among the laggards.
Pammal Sambandha Mudaliar’s contribution to modern Tamil drama remembered
SASTRA’s the School of Arts, Sciences, Humanities and Education, in collaboration with Sahitya Akademi, organises seminar on the celebrated playwright in Thanjavur
Forest Department free coaching helps tribal youth in Jawadhu Hills to get government jobs
Powerloom weavers urge Tamil Nadu CM to take up the issue of QCOs on textiles with the Central government
Self-assembly of amphiphilic homopolymers grafted onto spherical nanoparticles: complete embedded minimal surfaces and a machine learning algorithm for their recognition
DOI: 10.1039/D4SM00616J, Paper
Amphiphilic macromolecules grafted onto spherical nanoparticles can self-assemble into morphological structures corresponding to the family of complete embedded minimal surfaces. They arise situationally, can coexist and transform into each other.
The content of this RSS Feed (c) The Royal Society of Chemistry
Active nematic coherence probed under spatial patterns of distributed activity
DOI: 10.1039/D4SM00651H, Paper
A photoresponsive variant of the paradigmatic active nematic fluid made of microtubules and powered by kinesin motors is studied in the conventional two-dimensional interfaced form when forced under blue-light illumination....
The content of this RSS Feed (c) The Royal Society of Chemistry
Thin free-standing liquid films manipulation: device design to turn on/off gravity in flow regimes for thickness map control and for material structuring
DOI: 10.1039/D4SM00951G, Paper
We design a device to control liquid film drainage, able to switch between viscous-capillary and viscous-gravity regimes to stabilize thickness and modify particle arrangement, offering potential for film studies and 2D structure fabrication.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry
Solvent-Free Confinement of Ordered Microparticle Monolayers: Effect of Host Substrate and Pattern Symmetry
DOI: 10.1039/D4SM01196A, Paper
The self-organisation of individual suspended colloids into ordered structures that can be mediated by confinement has garnered interest recently. Despite the push for solvent reduction for sustainability reasons, the comprehension...
The content of this RSS Feed (c) The Royal Society of Chemistry
Magnetic colloidal single particles and dumbbells on a tilted washboard moir'e pattern in a precessing external field
DOI: 10.1039/D4SM01183J, Paper
We measure the dynamical behavior of colloidal singlets and dumbbells on an inclined magnetic moir'e pattern, subject to a precessing external homogeneous magnetic field. At low external field strength single...
The content of this RSS Feed (c) The Royal Society of Chemistry
A Modern Typographic Scale
Rob Weychert reaches for the top notes to sing us a song of typographic scale. A little attention to scale and to the mathematics will help you to hit a high note with your designs this Christmas and beyond.
I’ve been studying music theory this year. While some of its core concepts were already familiar to me, much of their specifics were not. Or so I thought. A funny thing happened when I was learning the major scales.
While playing through a song I had written some years before, I started picking it apart to see how it correlated with the theory I was learning. I had composed the melody without any thought to what the specific notes were, but as I started to transcribe them, a pattern quickly emerged: all the B’s and E’s were flat and the rest of the notes were natural. Lo and behold, long before my music theory studies began, I had written a song in B♭ major. My ears already knew how the major scales worked even if my brain didn’t. (If you know how “do re mi fa so la ti do” is supposed to sound tonally, then your ears know, too.)
When music is composed to a scale, it sounds “right” to us. And just as our ears appreciate harmony and melody with a rational basis, our eyes can appreciate the same concepts applied to spatial relationships.
Have you ever struggled with sizing type in a design project, especially when you need more than just one or two sizes? Have you ever despaired at the number of ad-hoc type sizes on your site spiraling out of control over time? It could be that you’ve been composing the typographic equivalent of a cacophonous symphony. And the first thing any composer will tell you to do is to get that thing on a scale.
Meet the typographic scale
You don’t need to know music theory to work with a typographic scale. You only need to know that a scale is a range of values with an established mathematic relationship. For a typographic scale, that relationship is frequently a steady interval between type sizes. Depending on what you need your type to do, the interval might be fixed (e.g. each size is two pixels bigger than the size before it) or it might be proportional (e.g. each size is twice as big as the size before it). I personally rarely find fixed intervals useful, so I’ll be focusing on proportional intervals.
The most important thing to understand about proportional intervals is thankfully not complicated: The bigger the intervals are, the more drastic the size differences will be in your scale. If your layout calls for contrast, a bigger interval might be the way to go. If you’re aiming for something more nuanced, go smaller. But keep these things in mind:
- There is such a thing as too much nuance: if a size on your scale is virtually indistinguishable from the sizes adjacent to it, it defeats the purpose of using a scale.
- On the flip side, too much contrast renders the sizes’ proportional relationship moot. At a certain point, massive display type is arguably more graphic than textual.
- More is less. The more sizes you use, the less they’ll mean.
Setting up the scale variables
The quickest way to get a scale up and running when working on the web is to drop its values into some CSS variables. The naming convention I typically use begins with --scale0
, which is the body text size. The size below it is --scale-1
(as in “scale minus one”), the size above it is --scale1
, and so on. Keeping the names relative to each other like this helps me move around the scale intuitively as I use it. If, say, --scale4
isn’t big enough for my h1
, I can move up to --scale5
or --scale6
, and I always know exactly how many steps away from the body text I am. Here’s a first pass at a simple set of scale variables using an interval of 1.5:
:root {
--scale-2: 7.1px; /* 10.7 ÷ 1.5 */
--scale-1: 10.7px; /* 16 ÷ 1.5 */
--scale0: 16px; /* body text */
--scale1: 24px; /* 16 × 1.5 */
--scale2: 36px; /* 24 × 1.5 */
}
I can use these variables with any CSS property that accepts a numeric value, like so:
p { font-size: var(--scale0); }
Rooting around in rem
s
I’m off to a good start. However, those px
values are a little too absolute for my liking. If I convert them to rem
s, it’ll give my scale more flexibility. rem
stands for “root em.” 1rem
is equivalent to the html
element’s text size, which in most browsers defaults to 16px
. Crucially, though, users can adjust that size in their browser settings, and using rem
s in my CSS will respect those preferences.
:root {
--scale-2: 0.4rem; /* 0.7rem ÷ 1.5 */
--scale-1: 0.7rem; /* 1rem ÷ 1.5 */
--scale0: 1rem; /* body text */
--scale1: 1.5rem; /* 1rem × 1.5 */
--scale2: 2.25rem; /* 1.5rem × 1.5 */
}
Another benefit of the relative nature of rem
s: I tend to use larger text sizes on large viewports and smaller text sizes on small viewports. Rather than adjusting dozens or hundreds of typographic CSS declarations per breakpoint, I can shift the whole scale up or down merely by adjusting the font-size
on the html
element:
html { font-size: 100%; } /* 1rem = 16px */
@media screen and (min-width: 25em) {
html { font-size: 112.5%; } /* 1rem = 18px */
}
Calculating with calc()
My scale is coming along. Its variables’ intuitive names make it easy for me to use, and its rem
values respect the user’s browser preferences and allow me to easily shift the size of the entire scale at different viewport sizes. But my setup still isn’t optimized for one very important adjustment: the interval, which is currently 1.5. If 1.5 isn’t quite working for me and I want to see how an increase or decrease will affect the scale, I need to do the math all over again for every step in the scale every time I adjust the interval. The bigger the scale, the more time that will take. It’s time to put down the abacus and get calc()
involved.
:root {
--int: 1.5;
--scale0: 1rem;
--scale-1: calc(var(--scale0) / var(--int));
--scale-2: calc(var(--scale-1) / var(--int));
--scale1: calc(var(--scale0) * var(--int));
--scale2: calc(var(--scale1) * var(--int));
}
My interval now has its very own variable, called --int
. calc()
determines each scale size by multiplying the preceding size by --int
. Now that every size is ultimately dependent on --scale0
’s value, --scale0
must appear first in the list. Since the sizes smaller than --scale0
are going down rather than up, their values require division rather than multiplication.
Scaling the scale
I can now quickly and easily tweak my scale’s interval by adjusting --int
until the proportions are just right, but if I want to add more sizes to the scale, I need to add more variables and calc()
values. This isn’t too big of a deal, but if I want to double or triple the number of sizes, it’s kind of a headache. Luckily, this is the sort of thing Sass is really good at. In the following code, adjusting the first four Sass variables at the top of :root
will quickly spin up a set of CSS variables like the scale above, with any interval (proportional or fixed) and any number of scale sizes:
:root {
$interval: 1.5; // Unitless for proportional, unit for fixed
$body-text: 1rem; // Must have a unit
$scale-min: -2; // Unitless negative integer
$scale-max: 2; // Unitless positive integer
--int: #{$interval};
--scale0: #{$body-text};
@if $scale-min < 0 {
// Generate scale variables smaller than the base text size
@for $i from -1 through $scale-min {
@if type-of($interval) == number {
@if unitless($interval) {
--scale#{$i}: calc(var(--scale#{$i + 1}) / var(--int));
} @else {
--scale#{$i}: calc(var(--scale#{$i + 1}) - var(--int));
}
}
}
}
@if $scale-max > 0 {
// Generate scale variables larger than the base text size
@for $i from 1 through $scale-max {
@if type-of($interval) == number {
@if unitless($interval) {
--scale#{$i}: calc(var(--scale#{$i - 1}) * var(--int));
} @else {
--scale#{$i}: calc(var(--scale#{$i - 1}) + var(--int));
}
}
}
}
}
Go forth and scale
Typographic scales have been an indispensable part of my work for many years, and CSS variables and calc()
make setup, adjustments, and experimentation easier than ever. I hope you find these techniques as useful as I do!
About the author
Rob Weychert is a Brooklyn-based designer. He helps shape the reading experience at ProPublica and has previously helped make books at A Book Apart, games at Harmonix, and websites at Happy Cog. In his free time, he obsesses over music and film. Despite all this, he is probably best known as a competitive air guitarist.
Tabu turns showstopper for Gaurang Shah
Actor Tabu in a Nizam-era inspired ensemble by Gaurang Shah added sheen to National Handloom Day 2022 in Hyderabad
Uniqlo turns three in the India market; launches second edition of its collaboration with Italian luxury fashion house Marni
Headquartered in Tokyo, the Japanese apparel brand focusses on technology and sustainability, and its latest collection of fleece jackets is made of recycled PET bottles
Editorial. Rail Budget’s capex boost welcome, but concerns remain
The Railways must attract higher freight volumes, even as it positions itself as a high end passenger travel option
Editorial. Overall rain surplus but spatial, temporal spread concerning
While the IMD has strived to improve its predictive models, global warming is the wild card factor
Editorial. Little or no lessons learnt from natural disasters
Population as well as economic activities in vulnerable areas should be kept to a minimum. Yet, governments have promoted the opposite, including tourism
Editorial. Churn in Haryana
Editorial. Monetary policy can’t quell stubborn food inflation
Monetary policy cannot do very much to control food inflation, given that it is caused by supply bottlenecks rather than increase in demand
Bank unions push back against government ‘micromanagement’ in employee performance reviews
More than 1 lakh bank employees likely to be affected by DFS instruction to banks, says AIBEA General Secretary Venkatachalam
Govt invites applications for RBI Deputy Governor
The appointment is for a period of three years, and the individual is qualified for reappointment. The position will have a monthly salary of Rs ₹2.25 lakh (Level-17)
Turnaround : A Story of Recovery / directed by: Moira Simpson ; produced by: Jennifer Torrance, Moira Simpson, John Taylor, Kathleen Shannon ; production agency: National Film Board of Canada (Montreal)
Andhra Pradesh government releases list of 62 persons nominated to various corporations
Chaganti Koteswara Rao and Mohammad Shareef have been appointed Advisers in the Cabinet rank on Ethics and Values, and Minority Affairs respectively
Suo motu cases against YSRCP chief Jagan if he issues threats to police officers, warns Andhra Pradesh Deputy CM Pawan
The government is not prepared to take lightly the former Chief Minister’s recent statement that he would not spare some IPS officers even after their retirement, asserts Pawan Kalyan; the government will not let the sacrifices of forest martyrs go waste, he says
Andhra Pradesh Government presents Budget with an outlay ₹2.94 lakh crore
The fiscal deficit will be around 4.19% of the Gross State Domestic Product (GSDP), whereas the revenue deficit will be around 2.12% of the GSDP; ₹11,855 crore allocated for agriculture and allied sectors
Expose the government’s failures and stand firm in questioning its decisions, Jagan urges YSRCP MLCs
The ruling party seems to be unwilling to grant opposition status to YSRCP as it will have to allocate time and opportunities for the party to question the government, he says
Youth from Anantapur invited for We are Together International Prize of Russia
The prize is +awarded annually to citizens and organizations regardless of their country of residence, nationality, gender
Kurnool district students excel in belt grading competitions
Out of the total 28 participating students, 14 children participated in Yellow category, 13 in Yellow-1 category and one child in Green-1 category
Andhra Pradesh government urged to move new Tenancy Bill in Assembly
Andhra Pradesh Tenant Farmers’ Association proposes 35 amendments to Andhra Pradesh Land Cultivators Rights Act, 2024, including provisions for tenant ryots to receive crop loans based on the scale of finance
Carnatic music export: Positive outcomes and areas of concern
The increasing Carnatic music festivals abroad show the growing interest of the NRIs, and a huge financial market for the art form
Maharashtra elections 2024: Unemployment and inflation are main concerns of voters
With public sentiment leaning towards addressing immediate economic challenges, the effectiveness with which each coalition communicates its vision will be crucial in determining its success.
Maharashtra elections 2024: Comparing the governments led by Thackeray and Shinde
While the previous MVA govt. has a higher rating in terms of overall development of Maharashtra and social harmony, the incumbent Mahayuti govt. has edge in the areas of condition of hospitals, supply of electricity, drinking water, and roads.
Maharashtra elections 2024: Shinde-led Mahayuti government perceived as high on corruption, not bad on performance
Two in five (42%) voters believed that corruption had increased under the Mahayuti government.
A bitter battle for the Karnataka bypolls
The results will have larger implications for not just parties, but also individual leaders